/* Contact page redesign - polished but controlled visual upgrade */
.contact-redesign {
    background: #fff;
    color: var(--yg-ink);
    overflow: hidden;
}

.contact-redesign .container {
    position: relative;
    z-index: 2;
}

.contact-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 78px 0 88px;
    background-image: url('/assets/images/homepage-redesign/aerial-layout-2.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 190, 24, 0.36), transparent 30%),
        linear-gradient(105deg, rgba(0, 63, 36, 0.96) 0%, rgba(0, 91, 37, 0.84) 43%, rgba(7, 55, 100, 0.72) 100%);
}

.contact-eyebrow,
.contact-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--yg-gold);
}

.contact-eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.26);
    padding: 9px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.contact-section-kicker::before,
.contact-section-kicker::after {
    content: '';
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--yg-green), var(--yg-yellow));
}

.contact-section-kicker.light {
    color: var(--yg-yellow);
}

.contact-section-kicker.light::before,
.contact-section-kicker.light::after {
    background: linear-gradient(90deg, #fff, var(--yg-yellow));
}

.contact-hero h1 {
    margin: 16px 0 18px;
    font-size: clamp(2.45rem, 5vw, 4.55rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.055em;
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    max-width: 780px;
}

.contact-hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    line-height: 1.65;
    font-weight: 600;
    margin-bottom: 26px;
}

.contact-primary-btn,
.contact-outline-btn,
.contact-submit-btn,
.office-map-btn,
.cta-call-btn,
.cta-whatsapp-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 850;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.15);
}

.contact-primary-btn,
.contact-submit-btn,
.cta-call-btn {
    background: linear-gradient(135deg, var(--yg-orange), #ff920f);
    color: #fff !important;
}

.contact-outline-btn,
.office-map-btn,
.cta-whatsapp-btn {
    background: #fff;
    color: var(--yg-green-dark) !important;
}

.contact-primary-btn:hover,
.contact-submit-btn:hover,
.cta-call-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.contact-outline-btn:hover,
.office-map-btn:hover,
.cta-whatsapp-btn:hover {
    background: var(--yg-yellow);
    color: #152033 !important;
    transform: translateY(-1px);
}

.contact-hero-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    padding: 30px;
    color: var(--yg-ink);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.hero-card-icon,
.office-icon,
.branch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yg-green), var(--yg-green-dark));
    color: #fff;
    box-shadow: 0 16px 28px rgba(8, 117, 47, 0.23);
}

.hero-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.contact-hero-card h5,
.contact-info-card h3,
.contact-office-card h4,
.branch-card h5,
.contact-cta-card h2,
.contact-form-card h2,
.contact-section-head h2 {
    font-weight: 900;
    letter-spacing: -0.035em;
}

.contact-hero-card h5 {
    margin-bottom: 10px;
}

.contact-hero-card p {
    color: var(--yg-muted);
    text-shadow: none;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-quick-grid {
    display: grid;
    gap: 10px;
}

.contact-quick-grid a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f6faf5;
    border: 1px solid rgba(8, 117, 47, 0.10);
    border-radius: 16px;
    padding: 13px 14px;
    color: var(--yg-ink);
    text-decoration: none;
    font-weight: 800;
}

.contact-quick-grid a:hover {
    color: var(--yg-green-dark);
    background: #fff7d8;
}

.contact-quick-grid i {
    color: var(--yg-green);
    font-size: 1.08rem;
}

.contact-main-section {
    padding: 88px 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 190, 24, 0.14), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f8fbf6 100%);
}

.contact-form-card,
.contact-info-card,
.contact-office-card,
.branch-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: var(--yg-shadow);
}

.contact-form-card {
    padding: clamp(28px, 4vw, 44px);
    height: 100%;
}

.contact-form-card h2,
.contact-section-head h2 {
    color: var(--yg-ink);
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 12px 0 12px;
}

.contact-intro,
.contact-section-head p {
    color: var(--yg-muted);
    line-height: 1.7;
    margin-bottom: 26px;
}

.contact-success {
    border: 0;
    border-radius: 16px;
    background: rgba(8, 117, 47, 0.10);
    color: var(--yg-green-dark);
    font-weight: 750;
}

.contact-form label {
    color: #344054;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 15px;
    padding: 13px 15px;
    font-weight: 600;
    color: var(--yg-ink);
    background-color: #fbfdfb;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: rgba(8, 117, 47, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(8, 117, 47, 0.12);
    background: #fff;
}

.contact-submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 14px 26px;
}

.contact-note {
    color: var(--yg-muted);
    font-size: 0.86rem;
    margin: 14px 0 0;
}

.contact-info-stack {
    display: grid;
    gap: 22px;
    height: 100%;
}

.contact-info-card {
    padding: 30px;
}

.highlight-card {
    background: linear-gradient(135deg, var(--yg-green-deep), var(--yg-green-dark));
    color: #fff;
    border: 0;
    box-shadow: 0 26px 55px rgba(0, 63, 36, 0.22);
}

.highlight-card h3 {
    margin: 14px 0 18px;
    color: #fff;
}

.info-list {
    display: grid;
    gap: 14px;
}

.info-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.info-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.info-item > span {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 190, 24, 0.22);
    color: var(--yg-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.info-item strong {
    display: block;
    color: #fff;
    font-weight: 900;
    margin-bottom: 2px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.55;
}

.contact-office-card {
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(255, 190, 24, 0.16), rgba(8, 117, 47, 0.08)),
        #fff;
}

.office-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 1.45rem;
    margin-bottom: 16px;
}

.contact-office-card h4 {
    margin-bottom: 12px;
    color: var(--yg-ink);
}

.contact-office-card p {
    color: var(--yg-muted);
    line-height: 1.72;
    margin-bottom: 20px;
}

.office-map-btn {
    box-shadow: none;
    border: 1px solid rgba(8, 117, 47, 0.20);
}

.branch-section {
    padding: 82px 0;
    background: #fff;
}

.contact-section-head {
    max-width: 790px;
    margin: 0 auto 38px;
}

.branch-card {
    height: 100%;
    padding: 28px 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.branch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.13);
}

.branch-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.branch-card h5 {
    color: var(--yg-ink);
    margin-bottom: 10px;
}

.branch-card p {
    color: var(--yg-muted);
    line-height: 1.62;
    min-height: 76px;
    margin-bottom: 14px;
}

.branch-card span {
    display: inline-flex;
    color: var(--yg-green-dark);
    background: rgba(8, 117, 47, 0.10);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 850;
}

.contact-cta-section {
    padding: 0 0 86px;
    background: linear-gradient(180deg, #fff 0%, #f8fbf6 100%);
}

.contact-cta-card {
    border-radius: 30px;
    padding: clamp(28px, 4vw, 46px);
    background:
        radial-gradient(circle at 82% 8%, rgba(255, 190, 24, 0.30), transparent 28%),
        linear-gradient(135deg, var(--yg-green-deep), var(--yg-green-dark) 62%, var(--yg-blue));
    color: #fff;
    box-shadow: 0 30px 70px rgba(0, 63, 36, 0.22);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.contact-cta-card h2 {
    color: #fff;
    margin: 14px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.contact-cta-card p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.80);
    margin: 0;
    line-height: 1.7;
}

.cta-call-btn,
.cta-whatsapp-btn {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .contact-hero {
        padding: 62px 0 70px;
        min-height: auto;
    }

    .contact-hero-card {
        margin-top: 10px;
    }

    .contact-main-section,
    .branch-section {
        padding: 64px 0;
    }

    .contact-cta-section {
        padding-bottom: 64px;
    }

    .contact-cta-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .contact-hero h1 {
        font-size: 2.35rem;
        letter-spacing: -0.04em;
    }

    .contact-hero p {
        font-size: 0.98rem;
    }

    .contact-form-card,
    .contact-info-card,
    .contact-office-card {
        border-radius: 22px;
        padding: 24px 20px;
    }

    .contact-primary-btn,
    .contact-outline-btn,
    .cta-call-btn,
    .cta-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-section-kicker::before,
    .contact-section-kicker::after {
        width: 22px;
    }

    .branch-card p {
        min-height: auto;
    }
}
