/* Global form and page background */
:root {
    --xpeng-green: #7abf43;
}

body,
html {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #dce4e9, #e2e2f1);
    font-family: BasisGrotesque, sans-serif;
    font-weight: 400;
    color: #000;
}
section.w-full {
    background: linear-gradient(to bottom, #dce4e9, #e2e2f1);
}
h1, h2, h3, h4, h5, h6, .h2-thanks {
    font-family: BasisGrotesque, sans-serif;
    font-weight: 400 !important;
    text-transform: none !important;
}
h2.h2-thanks {
    font-size: 1.6rem !important;
}
/* Base input + textarea styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    border: none;
    border-bottom: 1px solid rgba(208, 208, 208, 1);
    background-color: transparent;
    border-radius: 0;
    outline: none;
    width: 100%;
    padding: 8px;
    transition: border-color 0.3s ease;
}

/* Only show green underline on focus */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-bottom: 1px solid rgb(164, 206, 76); /* adjust green as needed */
    outline: none;
}
/* Add this in form.css */
.input-error {
    border: none;
    border-bottom: 1px solid #e74e4e !important;
    background-color: white !important;
    outline: none !important;
    box-shadow: none !important;
}
.btn-black {
    margin-top: 1.2rem;
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    align-items: center;
    background-color: rgb(0 0 0 / 1);
    border-color: transparent;
    border-radius: 5px;
    border-width: 1px;
    color: rgb(255 255 255 / 1);
    cursor: pointer;
    display: flex;
    font-size: .75rem;
    line-height: 1rem;
    overflow: hidden;
    padding: .510rem 1.5rem;
    position: relative;
    text-align: center;
    transition-duration: .3s;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}
/* Style checkboxes when checked */
input[type="checkbox"]:checked {
    accent-color: var(--xpeng-green); /* modern browsers */
}

/* Optional fallback for older browsers */
input[type="checkbox"]:checked + label {
    color: var(--xpeng-green);
}
/* Style the submit button */
form button[type="submit"] {
    font-size: .75em;
    line-height: 1rem;
    background-color: black;
    color: white;
    padding: .595rem 1.6rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover state */
form button[type="submit"]:hover {
    background-color: var(--xpeng-green);
}
.error-message {
    margin-top: 5px;
}

/* Experian */
div.address-picklist-container {
    margin-top: .1rem;
    position: absolute;
    width: 690px;
    box-shadow: var(--box-shadow);
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    overflow: overlay;
    z-index: 1;
}

div.address-picklist {
    padding: .3rem;
}
div.address-picklist div {
    padding: .2rem;
    cursor: pointer;
}

div.address-picklist div:hover {
    background-color: lightgrey;
}

div.powered-by-experian {
    margin-top: .3rem;
    padding: .5rem;
    background-color: lightgrey;
    display: flex;
}

button.search-again-button {
    visibility: hidden;
}
