/**
 * Distributor Page - Specific Styles
 * Uses homepage-enhancements.css for common components
 */

/* Body */
body.distributor-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Override for Distributor Page - Dark initially, white on scroll */
.distributor-page .site-header {
    background: rgba(13, 13, 13, 0.98);
}

.distributor-page .site-header .logo img {
    filter: brightness(0) invert(1);
}

.distributor-page .site-header .main-nav a {
    color: #999;
}

.distributor-page .site-header .main-nav a:hover,
.distributor-page .site-header .main-nav a.active {
    color: #fff;
}

.distributor-page .site-header .lang-switch a {
    color: #666;
}

.distributor-page .site-header .lang-switch a.active,
.distributor-page .site-header .lang-switch a:hover {
    color: #fff;
}

.distributor-page .site-header .lang-switch span {
    color: #444;
}

.distributor-page .site-header .mobile-menu-toggle span {
    background: #fff;
}

/* Scrolled state - white background */
.distributor-page .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.distributor-page .site-header.scrolled .logo img {
    filter: none;
}

.distributor-page .site-header.scrolled .main-nav a {
    color: #666;
}

.distributor-page .site-header.scrolled .main-nav a:hover,
.distributor-page .site-header.scrolled .main-nav a.active {
    color: #000;
}

.distributor-page .site-header.scrolled .lang-switch a {
    color: #999;
}

.distributor-page .site-header.scrolled .lang-switch a.active,
.distributor-page .site-header.scrolled .lang-switch a:hover {
    color: #000;
}

.distributor-page .site-header.scrolled .lang-switch span {
    color: #ddd;
}

.distributor-page .site-header.scrolled .mobile-menu-toggle span {
    background: #222;
}

/* Page Hero */
.distributor-page .page-hero {
    background: #0d0d0d;
    padding: 100px 0 35px;
    text-align: center;
}

.distributor-page .page-hero .section-tag {
    color: #05809f;
    margin-bottom: 25px;
}

.distributor-page .page-hero h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.distributor-page .page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: #fafafa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 40px 25px;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: #ddd;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon span {
    font-size: 28px;
    color: #05809f;
}

.benefit-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 10px 0;
}

.benefit-item p {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.6;
}

/* Form Section */
.distributor-form-section {
    padding: 80px 0 120px;
    background: #fff;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #222;
    margin: 0 0 15px 0;
}

.form-header p {
    font-size: 1rem;
    color: #888;
    margin: 0;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #222;
    margin: 0 0 25px 0;
}

/* Form Elements */
.distributor-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.distributor-form .form-group {
    display: flex;
    flex-direction: column;
}

.distributor-form .form-group.full-width {
    grid-column: span 2;
}

.distributor-form label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.distributor-form input,
.distributor-form select,
.distributor-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 15px;
    color: #222;
    font-family: inherit;
    transition: border-color 0.3s ease;
    border-radius: 2px;
}

.distributor-form input:focus,
.distributor-form select:focus,
.distributor-form textarea:focus {
    outline: none;
    border-color: #05809f;
}

.distributor-form textarea {
    resize: vertical;
    min-height: 120px;
}

.distributor-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #222;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.submit-btn:hover {
    background: #05809f;
}

.submit-btn span {
    transition: transform 0.3s ease;
}

.submit-btn:hover span {
    transform: translateX(3px);
}

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

@media (max-width: 960px) {
    .distributor-page .page-hero {
        padding: 100px 0 40px;
    }

    .distributor-page .page-hero h1 {
        font-size: 2.5rem;
    }

    .benefits-section {
        padding: 60px 0;
    }

    .distributor-form-section {
        padding: 60px 0 100px;
    }
}

@media (max-width: 768px) {
    .distributor-page .page-hero {
        padding: 90px 0 35px;
    }

    .distributor-page .page-hero h1 {
        font-size: 2rem;
    }

    .distributor-page .page-hero p {
        font-size: 1rem;
    }

    .benefits-section {
        padding: 50px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item {
        padding: 30px 20px;
    }

    .distributor-form-section {
        padding: 50px 0 80px;
    }

    .distributor-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .distributor-form .form-group.full-width {
        grid-column: span 1;
    }

    .form-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .distributor-page .page-hero {
        padding: 85px 0 30px;
    }

    .distributor-page .page-hero h1 {
        font-size: 1.7rem;
    }

    .benefits-section {
        padding: 40px 0;
    }

    .distributor-form-section {
        padding: 40px 0 60px;
    }

    .form-header h2 {
        font-size: 1.4rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}
