/* YUANHANG SUTONG CONTACT WIDGET STRUCTURAL STYLES */
.ys-contact-page {
    --primary-navy: #062B4F;
    --orange: #F97316;
    --light-bg: #F5F7FA;
    font-family: 'Poppins', sans-serif;
    color: #1F2937;
    width: 100%;
    position: relative;
    display: block;
}

.ys-section {
    position: relative;
    width: 100%;
    display: block;
}

/* 01 Hero */
.ys-contact-page .ys-hero {
    background-color: var(--primary-navy); /* Fallback */
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: #fff;
}
.ys-contact-page .ys-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ys-contact-page .ys-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}
.ys-contact-page .ys-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}
.ys-contact-page .ys-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}
.ys-contact-page .ys-hero h1 span {
    color: var(--orange);
}
.ys-contact-page .ys-hero-desc {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 40px;
}
.ys-contact-page .ys-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.ys-contact-page .ys-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}
.ys-contact-page .ys-feature-card .ys-icon {
    font-size: 32px;
    color: var(--orange);
    flex-shrink: 0;
}

/* 02 Contact Main */
.ys-contact-page .ys-contact-main {
    max-width: 1200px;
    margin: -50px auto 50px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding: 0 20px;
}
.ys-contact-page .ys-contact-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.ys-contact-page .ys-contact-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
}
.ys-contact-page .ys-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.ys-contact-page .ys-form-grid .full-width {
    grid-column: 1 / -1;
}
.ys-contact-page .ys-form-field {
    display: flex;
    flex-direction: column;
}
.ys-contact-page .ys-form-field label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}
.ys-contact-page .ys-form-field input, .ys-contact-page .ys-form-field textarea {
    padding: 12px 15px;
    border: 1px solid #D9E0E7;
    border-radius: 6px;
    font-family: inherit;
    background: #FAFAFA;
}
.ys-contact-page .ys-submit-btn {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ys-contact-page .ys-info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}
.ys-contact-page .ys-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
}
/* Fixed Contact Icon Styling */
.ys-contact-page .ys-contact-card-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    aspect-ratio: 1 / 1;
    flex: 0 0 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    color: #FFFFFF;
    line-height: 1;
    box-sizing: border-box;
}

.ys-contact-page .ys-contact-card-icon i {
    display: block;
    color: inherit !important;
    width: 1em;
    height: 1em;
    font-size: 26px;
    line-height: 1;
    flex: 0 0 auto;
}

.ys-contact-page .ys-contact-card-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    max-width: 100%;
    max-height: 100%;
    color: inherit !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    flex: 0 0 auto;
    overflow: visible;
}

.ys-contact-page .ys-contact-card-icon img {
    display: block;
    width: 26px;
    height: 26px;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    flex: 0 0 auto;
}

.ys-contact-page .ys-contact-card-icon svg *,
.ys-contact-page .ys-contact-card-icon svg path,
.ys-contact-page .ys-contact-card-icon svg circle,
.ys-contact-page .ys-contact-card-icon svg rect,
.ys-contact-page .ys-contact-card-icon svg line,
.ys-contact-page .ys-contact-card-icon svg polyline,
.ys-contact-page .ys-contact-card-icon svg polygon {
    color: inherit !important;
}

.ys-contact-page .ys-info-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ys-contact-page .ys-info-text strong {
    display: block;
    font-size: 16px;
}
.ys-contact-page .ys-info-text span {
    display: block;
    font-size: 14px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 03 Offices */
.ys-contact-page .ys-offices {
    background: var(--light-bg);
    padding: 80px 20px;
}
.ys-contact-page .ys-offices-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}
.ys-contact-page .ys-office-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ys-contact-page .ys-office-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.ys-contact-page .ys-office-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-navy);
}
.ys-contact-page .ys-office-card p {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 5px;
}
.ys-contact-page .ys-map-container {
    position: relative;
    width: 100%;
}
.ys-contact-page .ys-map-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 04 CTA */
.ys-contact-page .ys-cta {
    background: var(--primary-navy);
    color: #fff;
    padding: 60px 20px;
}
.ys-contact-page .ys-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.ys-contact-page .ys-cta-content h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
}
.ys-contact-page .ys-cta-content h2 span {
    color: var(--orange);
}
.ys-contact-page .ys-cta-btn {
    background: var(--orange);
    color: #fff;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media(max-width: 1024px) {
    .ys-contact-page .ys-contact-main, 
    .ys-contact-page .ys-offices-container, 
    .ys-contact-page .ys-cta-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .ys-contact-page .ys-hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ys-contact-page .ys-contact-card-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
        flex-basis: 54px;
    }
    .ys-contact-page .ys-contact-card-icon i {
        font-size: 24px;
    }
    .ys-contact-page .ys-contact-card-icon svg,
    .ys-contact-page .ys-contact-card-icon img {
        width: 24px;
        height: 24px;
    }
}
@media(max-width: 767px) {
    .ys-contact-page .ys-hero h1 { font-size: 32px; }
    .ys-contact-page .ys-hero-features { grid-template-columns: 1fr; }
    .ys-contact-page .ys-form-grid { grid-template-columns: 1fr; }
    
    .ys-contact-page .ys-contact-card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        flex-basis: 50px;
    }
    .ys-contact-page .ys-contact-card-icon i {
        font-size: 22px;
    }
    .ys-contact-page .ys-contact-card-icon svg,
    .ys-contact-page .ys-contact-card-icon img {
        width: 22px;
        height: 22px;
    }
}
