/* ===== Contact Form Section ===== */
.contact-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    scroll-margin-top: 96px;
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(36,54,116,0.18);
    background: linear-gradient(135deg, #1a2550 0%, #243674 65%, #2d4a9e 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.contact-section-deco {
    position: absolute;
    opacity: 0.07;
    pointer-events: none;
}
.contact-section-deco--tr {
    width: 300px; height: 300px;
    top: -60px; right: -60px;
}
.contact-section-deco--bl {
    width: 230px; height: 230px;
    bottom: -20px; left: -20px;
}
.contact-bg {
    display: none;
}
.contact-flex {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 340px;
}
.contact-left {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 0 32px 48px;
}
.contact-left-text {
    color: whitesmoke !important;
    font-size: 1.4rem;
    font-weight: 400;
    max-width: 420px;
    background: none;
    z-index: 2;
}
.contact-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 0.01em;
}
.contact-right {
    flex: 1.2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 48px 32px 0;
}
.contact-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(34,34,34,0.13);
    padding: 32px 28px 28px 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 1rem;
    color: #222;
    font-weight: 400;
}
.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #bdbdbd;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background: #eaf2fc;
    transition: border-color 0.2s;
    resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 1.5px solid #243674;
    background: #fff;
}
.contact-submit {
    background: #dde5ef;
    color: #222;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.contact-submit:hover {
    background: #243674;
    color: #fff;
}
.contact-submit:disabled {
    background: #bfc7d1 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 1 !important;
    border: none !important;
}
.contact-submit:disabled:hover {
    background: #bfc7d1 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 1 !important;
    border: none !important;
}

/* ===== Contacts page wrapper ===== */
.contact-form-wrapper {
    padding: 48px 24px;
    background: #f4f6fb;
}
.contact-form-wrapper .contact-section {
    max-width: 1100px;
}

/* ===== Popup overrides ===== */
.popup-content .contact-form-section {
    padding: 20px;
}
.popup-content .contact-flex {
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .popup-content .contact-flex {
        flex-direction: row;
    }
    .popup-content .contact-left {
        width: 35%;
    }
    .popup-content .contact-right {
        width: 65%;
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        min-height: unset;
    }
    .contact-left, .contact-right {
        padding: 24px 16px;
        justify-content: center;
    }
    .contact-form {
        min-width: unset;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .contact-section {
        border-radius: 18px;
        margin: 0 0 24px 0;
    }
    .contact-left, .contact-right {
        padding: 16px 4px;
    }
    .contact-form {
        padding: 18px 8px;
    }
    .contact-title {
        font-size: 1.2rem;
    }
    .contact-desc {
        font-size: 1rem;
        padding: 10px;
    }
    .contact-submit {
        opacity: 1 !important;
        transform: none !important;
        background: #243674 !important;
        color: #fff !important;
        width: 100%;
        margin-top: 18px;
        box-shadow: 0 2px 8px rgba(59,123,191,0.13);
        transition: none !important;
        display: block;
        text-align: center;
    }
    .contact-form label[for='privacy-check'],
    .contact-form #privacy-check + a,
    .contact-form label[style*='display: flex'] {
        font-size: 1.13rem !important;
        line-height: 1.4 !important;
        gap: 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        word-break: break-word !important;
    }
    .contact-form #privacy-check {
        width: 22px !important;
        height: 22px !important;
        margin-right: 10px !important;
    }
    .contact-form label[style*='display: flex'] a {
        font-size: 1.13rem !important;
        display: inline-block !important;
        margin-top: 4px !important;
    }
}
