/* ========================================
   Soto Machinery - Contact Page Styles
   Version: 1.0.0
   ======================================== */

:root {
    --soto-primary: #0d7377;
    --soto-secondary: #145374;
    --soto-accent: #f5a623;
    --soto-text: #2d3748;
    --soto-text-light: #5a6b7d;
    --soto-bg: #f7f9fc;
    --soto-white: #ffffff;
    --soto-border: #e8edf2;
    --soto-radius: 8px;
    --soto-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --soto-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --soto-transition: all 0.3s ease;
    --soto-container: 1400px;
}

.soto-contact-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--soto-text);
    line-height: 1.7;
    box-sizing: border-box;
}

.soto-contact-page *,
.soto-contact-page *::before,
.soto-contact-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.soto-contact-page a {
    text-decoration: none;
    color: var(--soto-primary);
    transition: var(--soto-transition);
}

.soto-contact-page a:hover {
    color: var(--soto-accent);
}

.soto-contact-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.soto-contact-page .soto-container {
    max-width: var(--soto-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   1. Page Hero
   ======================================== */
.soto-contact-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(13,115,119,0.92) 0%, rgba(20,83,116,0.95) 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.soto-contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.soto-epmachinery.com/wp-content/uploads/2026/09/about-hero-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

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

.soto-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.soto-breadcrumb a {
    color: rgba(255,255,255,0.85);
}

.soto-breadcrumb a:hover {
    color: #fff;
}

.soto-breadcrumb span {
    color: rgba(255,255,255,0.5);
}

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

.soto-contact-hero h1 {
    font-size: 46px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.soto-contact-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    line-height: 1.6;
}

/* ========================================
   2. Contact Info Cards
   ======================================== */
.soto-contact-info {
    padding: 80px 0 40px;
}

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

.soto-contact-card {
    background: var(--soto-white);
    border: 1px solid var(--soto-border);
    border-radius: var(--soto-radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--soto-transition);
    position: relative;
    overflow: hidden;
}

.soto-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--soto-primary), var(--soto-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.soto-contact-card:hover {
    box-shadow: var(--soto-shadow-hover);
    transform: translateY(-4px);
}

.soto-contact-card:hover::before {
    transform: scaleX(1);
}

.soto-contact-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(13,115,119,0.1), rgba(245,166,35,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.soto-contact-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--soto-primary);
}

.soto-contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--soto-text);
    margin-bottom: 8px;
}

.soto-contact-card p {
    font-size: 15px;
    color: var(--soto-text-light);
    margin-bottom: 4px;
}

.soto-contact-card .soto-contact-detail {
    font-size: 16px;
    font-weight: 600;
    color: var(--soto-primary);
    word-break: break-word;
}

.soto-contact-card .soto-contact-detail a {
    color: var(--soto-primary);
}

.soto-contact-card .soto-contact-detail a:hover {
    color: var(--soto-accent);
}

/* ========================================
   3. Form + Info Section
   ======================================== */
.soto-contact-form-section {
    padding: 40px 0 80px;
    background: var(--soto-bg);
}

.soto-contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

/* Left: Info Panel */
.soto-contact-aside {
    background: linear-gradient(135deg, var(--soto-primary), var(--soto-secondary));
    border-radius: var(--soto-radius);
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.soto-contact-aside::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.soto-contact-aside::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(245,166,35,0.08);
    border-radius: 50%;
}

.soto-contact-aside > * {
    position: relative;
    z-index: 1;
}

.soto-contact-aside h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.soto-contact-aside > p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.6;
}

.soto-contact-aside-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.soto-contact-aside-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.soto-contact-aside-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.soto-contact-aside-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.soto-contact-aside-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.soto-contact-aside-item p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.soto-contact-aside-item a {
    color: #fff;
}

.soto-contact-aside-item a:hover {
    color: var(--soto-accent);
}

/* WhatsApp Button */
.soto-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    transition: var(--soto-transition);
}

.soto-whatsapp-btn:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.soto-whatsapp-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Right: Form */
.soto-contact-form-wrapper {
    background: var(--soto-white);
    border-radius: var(--soto-radius);
    padding: 48px 40px;
    box-shadow: var(--soto-shadow);
}

.soto-contact-form-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--soto-text);
    margin-bottom: 8px;
}

.soto-contact-form-wrapper > p {
    font-size: 16px;
    color: var(--soto-text-light);
    margin-bottom: 32px;
}

.soto-contact-form-wrapper .fluentform {
    width: 100%;
}

.soto-contact-form-wrapper .fluentform .ff-el-form-control {
    border: 2px solid var(--soto-border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--soto-transition);
}

.soto-contact-form-wrapper .fluentform .ff-el-form-control:focus {
    border-color: var(--soto-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,115,119,0.1);
}

.soto-contact-form-wrapper .fluentform .ff-btn-submit {
    background: var(--soto-accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--soto-transition);
}

.soto-contact-form-wrapper .fluentform .ff-btn-submit:hover {
    background: #e0951a;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}

/* ========================================
   4. Map Section
   ======================================== */
.soto-contact-map {
    padding: 0 0 80px;
}

.soto-map-wrapper {
    border-radius: var(--soto-radius);
    overflow: hidden;
    box-shadow: var(--soto-shadow);
    height: 450px;
    position: relative;
}

.soto-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ========================================
   5. Why Contact Us
   ======================================== */
.soto-why-contact {
    padding: 80px 0;
    background: var(--soto-bg);
}

.soto-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.soto-section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--soto-primary);
    background: rgba(13,115,119,0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.soto-section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--soto-text);
    line-height: 1.3;
    margin-bottom: 12px;
}

.soto-section-header p {
    font-size: 17px;
    color: var(--soto-text-light);
}

.soto-why-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.soto-why-card {
    background: var(--soto-white);
    border-radius: var(--soto-radius);
    padding: 40px 32px;
    text-align: center;
    transition: var(--soto-transition);
    border: 1px solid var(--soto-border);
}

.soto-why-card:hover {
    box-shadow: var(--soto-shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.soto-why-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(13,115,119,0.1), rgba(245,166,35,0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.soto-why-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--soto-primary);
}

.soto-why-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--soto-text);
    margin-bottom: 12px;
}

.soto-why-card p {
    font-size: 15px;
    color: var(--soto-text-light);
    line-height: 1.6;
}

/* ========================================
   6. CTA Section
   ======================================== */
.soto-cta-section {
    background: linear-gradient(135deg, var(--soto-primary), var(--soto-secondary));
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.soto-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.soto-epmachinery.com/wp-content/uploads/2026/09/factory-exterior.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.soto-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.soto-cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.soto-cta-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}

.soto-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.soto-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--soto-transition);
    cursor: pointer;
}

.soto-btn-primary {
    background: var(--soto-accent);
    color: #fff;
}

.soto-btn-primary:hover {
    background: #e0951a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.soto-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.soto-btn-outline:hover {
    background: #fff;
    color: var(--soto-primary);
    border-color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .soto-contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .soto-contact-form-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 768px) {
    .soto-contact-hero h1 {
        font-size: 32px;
    }

    .soto-contact-hero p {
        font-size: 16px;
    }

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

    .soto-contact-form-wrapper,
    .soto-contact-aside {
        padding: 32px 24px;
    }

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

    .soto-section-header h2 {
        font-size: 28px;
    }

    .soto-cta-content h2 {
        font-size: 26px;
    }

    .soto-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .soto-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .soto-map-wrapper {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .soto-contact-hero {
        padding: 60px 0 40px;
    }

    .soto-contact-info {
        padding: 48px 0 24px;
    }

    .soto-contact-form-section {
        padding: 24px 0 48px;
    }

    .soto-why-contact {
        padding: 48px 0;
    }

    .soto-contact-hero h1 {
        font-size: 28px;
    }
}
