/* ============================================
   CONTACT PAGE STYLES (Figma Specs)
   ============================================ */

.page-contact {
    background: linear-gradient(180deg, #CCDDEA 0%, #FFF 100%);
    min-height: 100vh;
    padding: 180px 40px 140px;
}

/* Main Wrapper - Two Columns */
.contact-wrapper {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    gap: 60px;
    align-items: flex-start;
    justify-content: space-between;
}

/* ============================================
   LEFT COLUMN: Contact Info
   ============================================ */
.contact-info {
    display: flex;
    width: 100%;
    max-width: 611px;
    flex-direction: column;
    align-items: flex-start;
    gap: 42px;
}

/* Hero: Title + Text */
.contact-hero {
    display: flex;
    height: 220px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    max-width: 611px;
}

.contact-hero__title {
    color: #005395;
    font-family: "Funnel Display", sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 120%;
    margin: 0;
}

.contact-hero__text,
.contact-hero__text p {
    color: #0C0033;
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

/* Contact Groups Wrapper */
.contact-groups-wrapper {
    display: flex;
    width: 100%;
    max-width: 412px;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

/* Each Contact Group */
.contact-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    align-self: stretch;
}

.contact-group__title {
    color: #005395;
    font-family: "Funnel Sans", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 150%;
    margin: 0;
}

/* Group Content: subtitle + items */
.contact-group__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.contact-group__subtitle {
    color: #005395;
    font-family: "Funnel Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.054px;
    margin: 0;
}

/* Contact Items Container */
.contact-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Each Contact Item Row */
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-item__icon svg {
    width: 20px;
    height: 20px;
}

.contact-item--linkedin .contact-item__icon {
    width: 24px;
    height: 24px;
}

.contact-item--linkedin .contact-item__icon svg {
    width: 24px;
    height: 24px;
}

.contact-item__text {
    color: #000;
    font-family: "Funnel Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.054px;
    text-decoration: none;
}

a.contact-item__text:hover {
    text-decoration: underline;
}

/* Text-only items (like address) */
.contact-item--text .contact-item__text,
.contact-item--location .contact-item__text {
    color: #000;
}

/* ============================================
   RIGHT COLUMN: Form Card
   ============================================ */
.contact-form-card {
    display: flex;
    width: 519px;
    min-width: 320px;
    padding: 24px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #FFF;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
}

.contact-form-card__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
}

.contact-form-card__title {
    color: #005395;
    font-family: "Funnel Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 150%;
    margin: 0;
}

.contact-form-card__description {
    color: #0C0033;
    font-family: "Funnel Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

.contact-form-card__footer {
    color: #757575;
    font-family: "Funnel Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    text-align: center;
    margin: -8px 0 0 0;
    align-self: stretch;
}

/* ============================================
   FORM STYLES (CF7 Compatible)
   ============================================ */
.contact-form-card__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
}

.contact-form-card__form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Field Wrapper */
.contact-form-card__form .form-field,
.contact-form-card__form p.form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    width: 100%;
    margin: 0;
    position: relative;
}

.contact-form-card__form p {
    margin: 0;
    width: 100%;
}

/* Validation Error - Absolute */
.contact-form-card__form .wpcf7-not-valid-tip {
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: #DC2626;
    font-family: "Funnel Sans", sans-serif;
    font-size: 13px;
    line-height: 1;
}

/* Hide response output */
.contact-form-card__form .wpcf7-response-output {
    display: none;
}

/* Labels */
.contact-form-card__form label {
    color: var(--sds-color-text-default-default, #0C0033);
    font-family: "Funnel Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

/* CF7 Input Wrappers - Full Width */
.contact-form-card__form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Text Inputs, Email, Tel, Select */
.contact-form-card__form input[type="text"],
.contact-form-card__form input[type="email"],
.contact-form-card__form input[type="tel"],
.contact-form-card__form select,
.contact-form-card__form .wpcf7-text,
.contact-form-card__form .wpcf7-email,
.contact-form-card__form .wpcf7-tel,
.contact-form-card__form .wpcf7-select {
    display: flex;
    padding: 0 16px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--Grey-300, #ADAEB5);
    background: transparent;
    color: #0C0033;
    font-family: "Funnel Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 40px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.contact-form-card__form input::placeholder,
.contact-form-card__form .wpcf7-text::placeholder,
.contact-form-card__form .wpcf7-email::placeholder,
.contact-form-card__form .wpcf7-tel::placeholder,
.contact-form-card__form textarea::placeholder {
    color: #B3B3B3;
}

/* Textarea */
.contact-form-card__form textarea,
.contact-form-card__form .wpcf7-textarea {
    width: 100%;
    height: 80px;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--Grey-300, #ADAEB5);
    background: transparent;
    color: #0C0033;
    font-family: "Funnel Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
}

.contact-form-card__form textarea:focus,
.contact-form-card__form .wpcf7-textarea:focus {
    outline: none;
    border-color: #005395;
}

.contact-form-card__form input:focus,
.contact-form-card__form select:focus,
.contact-form-card__form .wpcf7-text:focus,
.contact-form-card__form .wpcf7-email:focus,
.contact-form-card__form .wpcf7-tel:focus,
.contact-form-card__form .wpcf7-select:focus {
    outline: none;
    border-color: #005395;
}

/* Select Dropdown */
.contact-form-card__form select,
.contact-form-card__form .wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%235B5D6C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

/* Checkbox Row - CF7 Acceptance */
.contact-form-card__form .wpcf7-acceptance {
    display: block;
}

.contact-form-card__form .wpcf7-acceptance .wpcf7-list-item {
    display: block;
    padding: 0;
}

.contact-form-card__form .wpcf7-spinner {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* The label wraps both checkbox and text - make it flex */
.contact-form-card__form .wpcf7-acceptance .wpcf7-list-item > label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.contact-form-card__form .wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    accent-color: #005395;
    cursor: pointer;
}

.contact-form-card__form .wpcf7-acceptance .wpcf7-list-item-label {
    color: #0C0033;
    font-family: "Funnel Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    flex: 1;
}

.contact-form-card__form .wpcf7-acceptance a {
    color: #005395;
    text-decoration: underline;
}

/* Submit Button */
.contact-form-card__form input[type="submit"],
.contact-form-card__form .wpcf7-submit {
    display: flex;
    height: 46px;
    padding: 10px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    width: 100%;
    border-radius: 30px;
    border: 1px solid #005395;
    background: #005395;
    color: #FFF;
    font-family: "Funnel Sans", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 120%;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-form-card__form input[type="submit"]:hover,
.contact-form-card__form .wpcf7-submit:hover {
    background: #003d6e;
    border-color: #003d6e;
}

/* CF7 Response Messages */
.contact-form-card__form .wpcf7-response-output {
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: "Funnel Sans", sans-serif;
    font-size: 14px;
    line-height: 150%;
}

.contact-form-card__form .wpcf7-validation-errors {
    border-color: #DC2626;
    background: #FEF2F2;
    color: #DC2626;
}

.contact-form-card__form .wpcf7-mail-sent-ok {
    border-color: #16A34A;
    background: #F0FDF4;
    color: #16A34A;
}

.contact-form-card__form .wpcf7-not-valid-tip {
    color: #DC2626;
    font-size: 13px;
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 48px;
    }

    .contact-info {
        width: 100%;
        max-width: 611px;
    }

    .contact-groups-wrapper {
        width: 100%;
        max-width: 412px;
    }

    .contact-form-card {
        width: 100%;
        max-width: 519px;
    }
}

/* Mobile Layout */
.contact-wrapper--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.contact-hero--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    width: 100%;
}

.contact-hero--mobile .contact-hero__title,
.contact-hero--mobile .contact-hero__text {
    text-align: center;
}

.contact-groups-wrapper--mobile {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.contact-groups-wrapper--mobile .contact-group {
    align-items: center;
    text-align: center;
}

.contact-groups-wrapper--mobile .contact-group__content {
    align-items: center;
}

.contact-groups-wrapper--mobile .contact-items {
    align-items: center;
}

.contact-groups-wrapper--mobile .contact-item--linkedin {
    justify-content: center;
}

@media (max-width: 768px) {
    .page-contact {
        padding: 120px 16px 60px;
    }

    .contact-hero {
        height: auto;
        gap: 24px;
    }

    .contact-hero__title {
        font-size: 48px;
    }

    .contact-hero__text,
    .contact-hero__text p {
        font-size: 18px;
    }

    .contact-info {
        gap: 32px;
    }

    .contact-groups-wrapper {
        gap: 32px;
    }

    .contact-form-card {
        width: 100%;
        padding: 20px 24px;
    }

    .contact-hero__title {
        font-size: 36px;
    }

    .contact-group__title {
        font-size: 20px;
    }

    .contact-item__text {
        font-size: 16px;
    }

    .contact-form-card__form label {
        font-size: 16px;
    }
}

