/* Contact Hero */
.contact-hero-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    line-height: 0;
}

.contact-hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
}

/* Contact Page */
.contact-page-section {
    padding: 72px 0 86px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.contact-section-header {
    max-width: 820px;
    margin: 0 auto 42px;
}

.contact-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 18px;
    border-radius: 999px;
    background: #eef7ff;
    color: #0a67b1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.contact-section-header h1 {
    color: #0056B3;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.contact-section-header p {
    color: #07080a;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.65;
    margin: 0;
}

.contact-main-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(10, 103, 177, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.contact-info-panel,
.contact-form-panel {
    min-width: 0;
}

.contact-info-panel {
    padding: 16px 8px 16px 0;
}

.contact-info-panel h2,
.contact-form-panel h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-info-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3e8;
    color: #ff6a00;
    font-size: 17px;
}

.contact-info-item h3,
.contact-support-card h3 {
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 5px;
}

.contact-info-item p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.contact-info-item a,
.contact-person a {
    color: #0a67b1;
    text-decoration: none;
    word-break: break-word;
}

.contact-info-item a:hover,
.contact-person a:hover {
    color: #064f8f;
    text-decoration: underline;
}

.contact-support-card {
    margin-top: 28px;
    padding: 22px;
    background: #fff7f7;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 14px;
}

.contact-support-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b91c1c;
    margin-bottom: 16px;
}

.contact-person {
    margin-bottom: 14px;
}

.contact-person strong,
.contact-person a {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

.contact-person strong {
    color: #111827;
    font-weight: 800;
}

.contact-map-wrapper {
    width: 100%;
    height: 450px;
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(10, 103, 177, 0.12);
    background: #ffffff;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
    display: block;
}

.contact-form-panel {
    padding: 30px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-field {
    margin-bottom: 18px;
}

.contact-field label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.contact-field label span {
    color: #dc2626;
    margin-left: 3px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-field select {
    cursor: pointer;
    appearance: auto;
}

.contact-field textarea {
    min-height: 132px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #0a67b1;
    box-shadow: 0 0 0 4px rgba(10, 103, 177, 0.12);
}

.contact-field.has-error input,
.contact-field.has-error select,
.contact-field.has-error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.contact-field.has-success input,
.contact-field.has-success select,
.contact-field.has-success textarea {
    border-color: #16a34a;
}

.contact-error-message {
    display: block;
    min-height: 16px;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.contact-error-message ul,
.contact-error-message li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-recaptcha-container {
    width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.contact-recaptcha-container.has-error .g-recaptcha {
    border: 1px solid #dc2626;
    border-radius: 4px;
    display: inline-block;
}

.contact-recaptcha-error {
    display: none;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.contact-submit-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 7px;
    background: #0A67B1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-submit-btn:hover {
    background: #e94f00;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 91, 0, 0.24);
}

.contact-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
    box-shadow: none;
}

/* Tablet */
@media (max-width: 991px) {
    .contact-page-section {
        padding: 58px 0 70px;
    }

    .contact-main-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px;
    }

    .contact-info-panel {
        padding: 0;
    }

    .contact-section-header h1 {
        font-size: 32px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .contact-hero-image {
        max-height: 320px;
    }

    .contact-page-section {
        padding: 46px 0 56px;
    }

    .contact-section-header {
        margin-bottom: 30px;
    }

    .contact-section-header h1 {
        font-size: 27px;
    }

    .contact-section-header p {
        font-size: 16px;
    }

    .contact-main-card {
        padding: 18px;
        border-radius: 18px;
    }

    .contact-form-panel {
        padding: 22px 18px;
        border-radius: 15px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-panel h2,
    .contact-form-panel h2 {
        font-size: 22px;
    }

    .contact-map-wrapper {
        height: 260px;
    }

    .contact-map-wrapper iframe {
        min-height: 260px;
    }

    .contact-recaptcha-container .g-recaptcha {
        transform: scale(0.88);
        transform-origin: left top;
        min-height: 78px;
    }
}

/* Small Mobile */
@media (max-width: 420px) {
    .contact-main-card {
        padding: 14px;
    }

    .contact-form-panel {
        padding: 20px 14px;
    }

    .contact-support-card {
        padding: 18px;
    }

    .contact-map-wrapper {
        height: 230px;
    }

    .contact-map-wrapper iframe {
        min-height: 230px;
    }

    .contact-recaptcha-container .g-recaptcha {
        transform: scale(0.82);
        transform-origin: left top;
    }
}

/* Contact Success Popup */
.contact-success-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
}

.contact-success-popup-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 38px 30px 32px;
    background: #ffffff;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.contact-success-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.contact-success-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
}

.contact-success-popup-card h3 {
    color: #111827;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}

.contact-success-popup-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.contact-success-popup-warning {
    margin: 16px 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

.contact-success-popup-ok {
    margin-top: 10px;
    min-width: 120px;
    min-height: 44px;
    border: none;
    border-radius: 24px;
    background: #ff5b00;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.contact-success-popup-ok:hover {
    background: #e94f00;
    transform: translateY(-2px);
}

@media (max-width: 575px) {
    .contact-success-popup-card {
        padding: 34px 22px 28px;
        border-radius: 18px;
    }

    .contact-success-popup-card h3 {
        font-size: 22px;
    }
}