/* Contact Hero Section */
.contact-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    /* Reduced height as per modern standards */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/contact/contact-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    margin-top: 0;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    /* Darker overlay */
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-heading, "Inter", sans-serif);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* ===========================
   Scoped Contact Section (Agnoshin Style)
   =========================== */
.contact-page-section {
    background-color: #ea580c;
    /* Deep Orange Background */
    padding: 100px 0;
    color: #FFFFFF;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns Desktop */
    gap: 32px;
    /* Reduced gap for tighter layout */
    align-items: flex-start;
    max-width: 1100px;
    /* Constrain width to keep cols close */
    margin: 0 auto;
    /* Center the grid */
}

/* --- Left Column: Corporate Office --- */
.corporate-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #FFFFFF;
    line-height: 1.2;
}

.office-block {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.office-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
}

.office-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #FFFFFF;
}

.office-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 4px 0;
}

.office-link {
    color: #FFFFFF;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s ease;
}

.office-link:hover {
    opacity: 0.8;
}


/* --- Right Column: Form Card --- */
.contact-page__card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    color: var(--navy);
}

.card-inner-header {
    margin-bottom: 32px;
}

.card-inner-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.card-inner-header .highlight {
    color: #ea580c;
}

.card-inner-header p {
    font-size: 1rem;
    color: #64748b;
    /* Slate 500 */
    line-height: 1.6;
}

/* Form Styling */
.contact-page__form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.contact-page__form input,
.contact-page__form textarea {
    width: 100%;
    padding: 16px 20px;
    /* Increased padding */
    min-height: 56px;
    /* Taller inputs */
    border: 1px solid #e5e7eb;
    /* Match Home */
    border-radius: 8px;
    /* Match Home */
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy);
    background-color: #f9fafb;
    /* Match Home */
    transition: all 0.2s ease;
}

/* Phone Group Styling */
.contact-page-section .country-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    min-width: 140px;
    max-width: 40%;
    padding: 0 16px 0 20px;
    min-height: 56px;
    border: 1px solid #e5e7eb;
    /* Match Home */
    border-radius: 8px;
    /* Match Home */
    background-color: #f9fafb;
    /* Match Home */
    transition: all 0.2s ease;
}

.contact-page-section .country-select-wrapper:focus-within {
    border-color: #ea580c;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.contact-page-section .country-display {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
    /* Space for arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1em;
    width: 100%;
}

.contact-page-section .country-select-wrapper .country-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Invisible but clickable */
    cursor: pointer;
    z-index: 2;
}

.contact-page__form textarea {
    border-radius: 8px;
    /* Match Home */
    resize: vertical;
}

.contact-page__form input:focus,
.contact-page__form textarea:focus {
    outline: none;
    border-color: #ea580c;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-label-visible {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
    margin-left: 0;
    /* Remove offset */
}

.btn-pill-gray {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #e5e7eb;
    /* Match Home */
    color: #374151;
    /* Match Home */
    font-weight: 700;
    border-radius: 9999px;
    /* Pill */
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-pill-gray:hover {
    background-color: #d1d5db;
    /* Match Home */
    transform: translateY(-1px);
}

/* Success State */
.cp-success {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cp-success h3 {
    color: #111827;
    /* Dark Navy / Near Black */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 1;
    /* Ensure no opacity */
}

.cp-success p {
    color: #4B5563;
    /* Slate 600 */
    font-size: 1rem;
    line-height: 1.5;
    opacity: 1;
    /* Ensure no opacity */
    margin: 0;
}


/* --- Responsive --- */
@media (max-width: 991px) {
    .contact-page__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-page__card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }

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

    .corporate-heading {
        font-size: 2rem;
    }

    .contact-page__form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        /* Vertical stack handles gap via margin-bottom */
    }

    .contact-page__card {
        padding: 24px;
    }
}