/* =============================================
   Contact Us Page — Figma node 763-185
   ============================================= */

/* ──────────────────────────────────────────────
   Hero Banner
   ────────────────────────────────────────────── */
.contact-hero {
    background: linear-gradient(to right, #014a9f, #83a6cf);
    padding: 70px 0 60px;
    overflow: hidden;
    position: relative;
}

.contact-hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 380px;
    background-image: url('../img/batik-bg.png');
    background-size: cover;
    background-position: left center;
    opacity: 0.55;
    pointer-events: none;
}

.contact-hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 100px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    font-weight: 400;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
}

.breadcrumb .current {
    color: #ffffff;
    font-weight: 500;
}

/* Hero Text */
.contact-hero__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #ffffff;
}

.contact-hero__text h1 {
    font-size: 3.1rem;
    /* ~50px */
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
}

.contact-hero__text p {
    font-size: 1.56rem;
    /* ~25px */
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ──────────────────────────────────────────────
   Contact Section wrapper
   ────────────────────────────────────────────── */
.contact-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 100px 80px;
}

/* ──────────────────────────────────────────────
   Intro: badge + heading
   ────────────────────────────────────────────── */
.contact-intro {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
}

/* Pill badge — gradient, matching Figma blue gradient */
.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, #5686bf, #0e427d);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    width: fit-content;
}

.contact-badge i {
    font-size: 1rem;
}

/* Contact Us heading */
.contact-title {
    font-size: 3.1rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin: 0;
    line-height: 1.1;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 170px;
    height: 9px;
    background-color: #80a4cf;
    border-radius: 6px;
}

/* ──────────────────────────────────────────────
   Form Card
   ────────────────────────────────────────────── */
.contact-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    padding: 50px 36px 60px;
    margin-top: 50px;
    overflow: hidden;
}

/* ──────────────────────────────────────────────
   Form Layout
   ────────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Two-column row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

/* Single field group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group--full {
    width: 100%;
}

/* Labels */
.form-group label {
    font-size: 1.2rem;
    /* ~30px in Figma / scaled for web */
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* Text inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    height: 72px;
    background-color: #f8f9fb;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    padding: 0 28px;
    font-size: 1.1rem;
    font-family: var(--font-family);
    color: var(--text-dark);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: rgba(45, 45, 45, 0.45);
}

.form-group input:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Select wrapper — custom arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    height: 72px;
    background-color: #f8f9fb;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    padding: 0 52px 0 28px;
    font-size: 1.1rem;
    font-family: var(--font-family);
    color: rgba(45, 45, 45, 0.45);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.select-wrapper select:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.select-wrapper select option {
    color: var(--text-dark);
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #888;
    pointer-events: none;
}

/* Textarea */
.form-group textarea {
    width: 100%;
    min-height: 180px;
    background-color: #f8f9fb;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    padding: 24px 28px;
    font-size: 1.1rem;
    font-family: var(--font-family);
    color: var(--text-dark);
    outline: none;
    resize: vertical;
    transition: box-shadow 0.2s ease;
    line-height: 1.5;
}

.form-group textarea::placeholder {
    color: rgba(45, 45, 45, 0.45);
}

.form-group textarea:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Submit button — right-aligned pill */
.form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: -16px;
}

.btn-send {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-send:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.btn-send:active {
    transform: translateY(0);
}

/* ──────────────────────────────────────────────
   Breadcrumb (shared, used in hero override)
   ────────────────────────────────────────────── */
.breadcrumb-icon {
    display: inline-block;
}


/* Required Asterisk */
.required-asterisk {
    color: #e53e3e;
    /* Standard red */
    margin-left: 2px;
}

/* Button override for height consistency */
.form-group .btn-primary-height-fix {
    height: 72px !important;
}

.btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    min-width: 180px;
    /* Prevent button from changing width */
    position: relative;
    /* For absolute loader positioning */
    overflow: hidden;
}

.btn-send i {
    font-size: 1.2rem;
}

.btn-text,
.btn-loader {
    transition: opacity 0.3s ease;
}

.btn-text.hidden {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.25rem;
    border-radius: 10px;
    font-size: .9rem;
    margin-bottom: 1.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.alert--success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert--error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.field-error {
    font-size: .78rem;
    color: #e53e3e;
    margin-top: .3rem;
    display: block;
}

.input-invalid {
    border-color: #e53e3e !important;
}

.req {
    color: #e53e3e;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.recaptcha-wrap {
    margin-bottom: .75rem;
}

.form-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.btn-details-subject {
    width: 100%;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-details-subject i {
    font-size: 1.25rem;
}

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */
@media (max-width: 992px) {
    .contact-hero {
        padding: 50px 0 40px;
    }

    .contact-hero__inner {
        padding: 0 40px;
        gap: 30px;
    }

    .contact-hero__text h1 {
        font-size: 2.2rem;
    }

    .contact-hero__text p {
        font-size: 1.1rem;
    }

    .contact-section {
        padding: 50px 40px 60px;
    }

    .contact-title {
        font-size: 2.2rem;
    }

    .contact-card {
        padding: 36px 28px 44px;
        margin-top: 30px;
    }

    .contact-form {
        gap: 32px;
    }

    .form-row {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        padding: 36px 0 28px;
    }

    .contact-hero__inner {
        padding: 0 20px;
        gap: 20px;
    }

    .breadcrumb {
        font-size: 0.9rem;
        gap: 8px;
        flex-wrap: wrap;
    }

    .contact-hero__text h1 {
        font-size: 1.7rem;
    }

    .contact-hero__text p {
        font-size: 0.95rem;
    }

    .contact-hero::after {
        width: 160px;
        opacity: 0.35;
    }

    .contact-section {
        padding: 36px 16px 60px;
    }

    .contact-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .contact-title {
        font-size: 1.7rem;
    }

    .contact-title::after {
        width: 100px;
        height: 6px;
        bottom: -6px;
    }

    .contact-card {
        padding: 24px 18px 32px;
        margin-top: 24px;
        border-radius: 10px;
    }

    .contact-form {
        gap: 24px;
    }

    /* Stack two-column rows on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: stretch !important;
    }

    .form-group {
        gap: 10px;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .select-wrapper select {
        height: 56px;
        padding: 0 18px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 140px;
        padding: 16px 18px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Subject "Details of Subject" CTA — match collapsed input height */
    .form-group .btn-primary-height-fix {
        height: 56px !important;
        padding: 0 18px !important;
        font-size: 0.95rem !important;
    }

    /* reCAPTCHA may overflow on very narrow screens */
    .recaptcha-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-submit {
        align-items: stretch !important;
    }

    .btn-send {
        width: 100%;
        min-width: 0;
    }

    .alert {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}
