/**
 * Contact form v2 styles (redesigned /contact/ page).
 *
 * Every rule is scoped to .fc-pardot-v2, the class on the v2 template's container,
 * so these styles reach only [fc-pardot-contact-form-v2]. The live contact form
 * and the partner form keep using assets/css/style.css unchanged.
 *
 * Loaded after style.css; the extra .fc-pardot-v2 class makes these rules more
 * specific, so they win over style.css wherever both set the same property.
 */

.fc-pardot-form-container.fc-pardot-v2 {
    max-width: 100%;
    font-family: Roboto, sans-serif;
}

/* Rows and columns 24px apart */
.fc-pardot-v2 .fc-pardot-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.fc-pardot-v2 .fc-pardot-form .form-field {
    grid-column: initial;
}

/* These fields span both columns (full row).
   1 / -1 (not 1 / 3) so the single mobile column doesn't get a phantom second column. */
.fc-pardot-v2 .fc-pardot-form .form-field.email,
.fc-pardot-v2 .fc-pardot-form .form-field.phone,
.fc-pardot-v2 .fc-pardot-form .form-field.website,
.fc-pardot-v2 .fc-pardot-form .form-field.company,
.fc-pardot-v2 .fc-pardot-form .form-field.country,
.fc-pardot-v2 .fc-pardot-form .form-field.job-function,
.fc-pardot-v2 .fc-pardot-form .form-field.use-case,
.fc-pardot-v2 .fc-pardot-form .form-field.hear-about-us,
.fc-pardot-v2 .fc-pardot-form .form-field.description,
.fc-pardot-v2 .fc-pardot-form .form-field.opt-in,
.fc-pardot-v2 .fc-pardot-form p.submit,
.fc-pardot-v2 .fc-pardot-form .fc-privacy-note {
    grid-column: 1 / -1;
}

.fc-pardot-v2 .fc-pardot-form label {
    font-family: "Roboto", sans-serif;
    display: block;
    margin-bottom: 6px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #000000 !important;
}

.fc-pardot-v2 .fc-pardot-form input[type="text"],
.fc-pardot-v2 .fc-pardot-form input[type="email"],
.fc-pardot-v2 .fc-pardot-form input[type="tel"],
.fc-pardot-v2 .fc-pardot-form select,
.fc-pardot-v2 .fc-pardot-form textarea {
    width: 100%;
    height: 48px !important;
    padding: 12px;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #000000;
    background-color: #F0F0F2;
    border: 2px solid #80879A !important; /* lightest gray in the brand family that meets 3:1 against the white card and the field fill */
    border-radius: 10px;
}

/* !important needed to override the 48px !important above */
.fc-pardot-v2 .fc-pardot-form textarea {
    height: auto !important;
    min-height: 64px;
    resize: vertical;
}

/* Default placeholder gray fails contrast on #F0F0F2; #626B80 passes (4.7:1) */
.fc-pardot-v2 .fc-pardot-form ::placeholder {
    color: #626B80;
    opacity: 1;
}

.fc-pardot-v2 .fc-pardot-form input:focus-visible,
.fc-pardot-v2 .fc-pardot-form select:focus-visible,
.fc-pardot-v2 .fc-pardot-form textarea:focus-visible,
.fc-pardot-v2 .fc-pardot-form button:focus-visible {
    outline: 3px solid #00C1FF;
    outline-offset: 2px;
}

/* !important needed: without it the gray border !important above wins and errors never turn red */
.fc-pardot-v2 .fc-pardot-form .form-field-error input,
.fc-pardot-v2 .fc-pardot-form .form-field-error select,
.fc-pardot-v2 .fc-pardot-form .form-field-error textarea {
    border-color: #D0021B !important;
}

/* #D0021B passes 4.5:1 on white; #FF0000 (4.0:1) did not */
.fc-pardot-v2 .fc-pardot-form .error {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #D0021B;
}

.fc-pardot-v2 .fc-pardot-form .form-field.opt-in label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0 !important;
    font-size: 15px !important;
    color: #000000 !important;
}

.fc-pardot-v2 .fc-pardot-form .form-field.opt-in input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
}

/* Button row */
.fc-pardot-v2 .fc-pardot-form p.submit {
    margin: 12px 0 0;
}

.fc-pardot-v2 .fc-pardot-form button[type="submit"] {
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFFFFF !important;
    line-height: 1.2em;
    background: #404AAA !important;
    border: 3px solid #00C1FF !important;
    border-radius: 10px !important;
}

.fc-pardot-v2 .fc-pardot-form button[type="submit"]:hover {
    background-color: #00C1FF !important;
    color: #1E1C39 !important;
    border-color: #00C1FF !important;
}

.fc-pardot-v2 .fc-pardot-form .fc-privacy-note {
    margin: -8px 0 0;
    font-size: 13px;
    font-weight: 400; /* the theme's light weight made this hard to read at 13px */
    line-height: 1.5;
    color: #626B80;
}

/* Match the surrounding note; prevents site-wide link typography from enlarging it */
.fc-pardot-v2 .fc-pardot-form .fc-privacy-note a {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-decoration: underline;
}

.fc-pardot-v2 .fc-pardot-form-error {
    margin-bottom: 20px;
    font-family: Roboto, sans-serif;
    color: #D0021B;
}

.fc-pardot-v2 .fc-pardot-form-success {
    font-family: Roboto, sans-serif;
    font-weight: 500;
    color: #1A7D3C;
}

/* Mobile: single column */
@media (max-width: 700px) {
    .fc-pardot-v2 .fc-pardot-form {
        grid-template-columns: 1fr;
    }

    .fc-pardot-v2 .fc-pardot-form .form-field {
        grid-column: 1 / -1;
    }
}
