/* ==================== Contact Page ==================== */

.section-gray {
    background: #f4f7fc;
}

/* ---- Hero ---- */
.contact-hero {
    position: relative;
    padding: 140px 0 80px;
    background: #fff;
    border-bottom: 1px solid #eaf0f8;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.contact-hero-panel {
    position: relative;
    z-index: 1;
}

.contact-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fac10c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-hero-kicker::before {
    content: '';
    width: 32px;
    height: 1px;
    background: rgba(250, 193, 12, 0.8);
}

.contact-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 700;
    color: #16233c;
    margin-bottom: 18px;
}

.contact-hero-desc {
    max-width: 480px;
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---- Hero Card (right side) ---- */
.contact-hero-card {
    background: #fff;
    border: 1px solid #e8ecf3;
    box-shadow: 0 8px 40px rgba(15, 30, 61, 0.08);
}

.contact-hero-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f2f7;
}

.contact-hero-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #16233c;
}

.contact-hero-card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #7a8ba8;
    padding: 4px 10px;
    background: #f5f7fb;
}

.contact-hero-card-body {
    padding: 8px 24px 20px;
    display: grid;
    gap: 0;
}

.contact-hero-card-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f7;
}

.contact-hero-card-item:last-child {
    border-bottom: none;
}

.contact-hero-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4fa;
    color: #274B92;
}

.contact-hero-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-hero-card-key {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #999;
    text-transform: uppercase;
}

.contact-hero-card-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #16233c;
    line-height: 1.5;
    text-decoration: none;
    word-break: break-all;
}

.contact-hero-card-val:hover {
    color: #274B92;
}

/* ---- Buttons ---- */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.contact-btn--primary {
    background: #274B92;
    border-color: #274B92;
    color: #fff;
}

.contact-btn--primary:hover {
    background: #1E3A73;
    border-color: #1E3A73;
}

.contact-btn--outline {
    background: transparent;
    border-color: #ddd;
    color: #1a1a1a;
}

.contact-btn--outline:hover {
    border-color: #274B92;
    color: #274B92;
}

.contact-btn--gold {
    background: #FAC10C;
    border-color: #FAC10C;
    color: #1A1A1A;
}

.contact-btn--gold:hover {
    background: #e0ab00;
    border-color: #e0ab00;
}

/* ---- Chips ---- */
.contact-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(39, 75, 146, 0.25);
    background: #fff;
    color: #274B92;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.contact-chip:hover {
    border-color: rgba(39, 75, 146, 0.5);
    color: #1E3A73;
}

.contact-chip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- Advisor Section ---- */
.contact-section {
    padding: 64px 0;
    border-bottom: 1px solid #eaf0f8;
}

.contact-advisor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.contact-advisor-card {
    background: #fff;
    border: 1px solid #e8ecf3;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-advisor-card:hover {
    border-color: rgba(39, 75, 146, 0.25);
    box-shadow: 0 8px 30px rgba(15, 30, 61, 0.06);
}

.contact-advisor-card-head {
    padding: 18px 24px;
    background: #f5f7fb;
    border-bottom: 1px solid #e8ecf3;
}

.contact-advisor-card-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(39, 75, 146, 0.18);
    background: rgba(39, 75, 146, 0.06);
    color: #274B92;
}

.contact-advisor-card-body {
    padding: 20px 24px;
    display: grid;
    gap: 0;
}

.contact-advisor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f7;
}

.contact-advisor-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-advisor-item:first-child {
    padding-top: 0;
}

.contact-advisor-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #16233c;
}

.contact-advisor-phone {
    font-size: 1.05rem;
    font-weight: 700;
    color: #274B92;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.contact-advisor-phone:hover {
    color: #1E3A73;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-advisor-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-advisor-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ---- About ---- */
.contact-about-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-about-main .contact-section-header {
    margin-bottom: 24px;
}

.contact-about-body {
    display: grid;
    gap: 16px;
}

.contact-about-body p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #4F5D78;
}

.contact-about-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-about-mission {
    padding: 20px 22px;
    background: #f7f9fc;
    border-left: 3px solid #274B92;
}

.contact-about-mission-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #16233c;
    margin-bottom: 8px;
}

.contact-about-mission-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #65738E;
}

/* ---- Organization ---- */
.contact-org-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.contact-org-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #e8ecf3;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-org-card:hover {
    border-color: rgba(39, 75, 146, 0.2);
    box-shadow: 0 8px 30px rgba(15, 30, 61, 0.06);
}

.contact-org-role {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(39, 75, 146, 0.18);
    background: rgba(39, 75, 146, 0.06);
    color: #274B92;
}

.contact-org-name {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #16233c;
    line-height: 1.5;
}

.contact-org-list {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.contact-org-list p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #16233c;
    line-height: 1.5;
}

/* ---- Section Header ---- */
.contact-section-header {
    margin-bottom: 40px;
}

.contact-section-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: #16233c;
    line-height: 1.2;
}

.contact-section-subtitle {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.7;
    color: #65738E;
    max-width: 520px;
}

.contact-section-header--light .contact-section-title,
.contact-section-header--light .contact-section-subtitle {
    color: #fff;
}

.contact-section-header--light .contact-section-subtitle {
    opacity: 0.65;
}

/* ---- Committee ---- */
.contact-committee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e8ecf3;
}

.contact-committee-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 28px;
    background: #fff;
    transition: background 0.25s;
    align-items: start;
}

.contact-committee-card:hover {
    background: #fafbfd;
}

.contact-committee-photo {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e8ecf3;
}

.contact-committee-photo img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.contact-committee-card:hover .contact-committee-photo img {
    transform: scale(1.05);
}

.contact-committee-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.contact-committee-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #16233c;
    line-height: 1.2;
}

.contact-committee-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #274B92;
    line-height: 1.4;
}

.contact-committee-bio {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #65738E;
    margin-top: 4px;
}

/* ---- Official / Footer section ---- */
.contact-official {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.contact-official-main {
    display: flex;
}

.contact-store {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex: 1;
}

.contact-store-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(250, 193, 12, 0.4);
    color: #FAC10C;
    align-self: flex-start;
}

.contact-store-title {
    margin-top: 16px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.contact-store-desc {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    max-width: 420px;
}

.contact-store .contact-btn {
    margin-top: 24px;
    align-self: flex-start;
}

.contact-official-qrs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.contact-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.contact-qr-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.contact-qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-qr-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.contact-qr-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---- Accessibility ---- */
.contact-copy-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Nav overrides for contact page ---- */
body.contact-layout .nav {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.contact-layout .nav-logo,
body.contact-layout .nav-links a,
body.contact-layout .nav-lang {
    color: #1A1A1A;
}

body.contact-layout .nav-links a::after {
    background-color: #274B92;
}

body.contact-layout .nav-links a:hover,
body.contact-layout .nav-lang:hover,
body.contact-layout .nav-links a.is-active {
    color: #274B92;
}

body.contact-layout .nav-links a.is-active::after {
    width: 100%;
}

body.contact-layout .nav-links::before {
    background: rgba(39, 75, 146, 0.15);
}

/* ---- Partners ---- */
.contact-partners-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}

.contact-partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid rgba(39, 75, 146, 0.12);
    text-align: center;
}

.contact-partner-card img {
    width: 100%;
    max-width: 160px;
    height: 44px;
    object-fit: contain;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .contact-hero {
        padding: 120px 0 60px;
    }

    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero-card {
        max-width: 600px;
    }

    .contact-about-grid {
        gap: 32px;
    }

    .contact-about-side {
        grid-template-columns: 1fr;
    }

    .contact-org-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-official-qrs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 48px;
    }

    .contact-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-btn {
        width: 100%;
    }

    .contact-hero-card-head {
        padding: 16px 20px;
    }

    .contact-hero-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-hero-card-item {
        grid-template-columns: 32px 1fr auto;
        gap: 10px;
    }

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

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

    .contact-committee-card {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding: 20px;
    }

    .contact-committee-photo {
        width: 64px;
        height: 80px;
    }

    .contact-committee-photo img {
        width: 64px;
        height: 80px;
    }

    .contact-committee-name {
        font-size: 1rem;
    }

    .contact-official-qrs {
        grid-template-columns: 1fr;
    }

    .contact-store {
        padding: 24px;
    }

    .contact-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-partner-card {
        min-height: 52px;
        padding: 6px 8px;
    }

    .contact-partner-card img {
        max-width: 100px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-btn,
    .contact-chip,
    .contact-committee-card {
        transition: none;
    }
}
