/* ============================================
   DISTRIBUTOR PAGE STYLES - MINIMAL & PROFESSIONAL
   Matching Shop Page Aesthetic - Subtle Glass Morphism
   ============================================ */

/* ====== HERO SECTION ====== */
.distributor-hero {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg,
        rgba(147, 51, 234, 0.04) 0%,
        rgba(99, 91, 255, 0.04) 50%,
        rgba(147, 51, 234, 0.04) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary-purple);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    color: white;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    padding: var(--space-2xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    margin-bottom: 4px;
}

.stat-number-text {
    font-size: 2rem;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ====== BENEFITS SECTION ====== */
.benefits-section {
    padding: var(--space-3xl) 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 300;
    color: white;
    letter-spacing: -0.01em;
    margin: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: var(--space-2xl);
}

.benefit-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 51, 234, 0.3);
}

.benefit-icon-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 8px;
    color: var(--primary-purple);
    position: relative;
    z-index: 1;
}

.benefit-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.benefit-card:hover .benefit-glow {
    opacity: 1;
}

.benefit-content {
    margin-bottom: 16px;
}

.benefit-title {
    font-size: 18px;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
}

.benefit-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.benefit-highlight {
    display: flex;
    justify-content: flex-start;
}

.highlight-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-purple);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ====== TIER SYSTEM SECTION ====== */
.tier-system-section {
    padding: var(--space-3xl) 0;
    background: transparent;
}

.section-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    text-align: center;
}

.tier-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: var(--space-2xl) 0;
}

.tier-info-card {
    padding: 40px 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tier-info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 51, 234, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.tier-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(147, 51, 234, 0.05));
    border-radius: 50%;
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: var(--primary-purple);
}

.tier-info-card h3 {
    font-size: 22px;
    font-weight: 400;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.tier-info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 100%;
}

.tier-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: 48px var(--space-2xl);
    background: rgba(147, 51, 234, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.1);
}

.tier-cta p {
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tier-contact-note {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    line-height: 1.5;
}

.tier-contact-note a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 400;
}

.tier-contact-note a:hover {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ====== APPLICATION FORM SECTION ====== */
.application-section {
    padding: var(--space-3xl) 0;
    background: transparent;
}

.application-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: var(--space-2xl);
    backdrop-filter: blur(12px);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Distributor Type Selection */
.distributor-type-section {
    margin-bottom: var(--space-2xl);
    padding: 24px;
    background: rgba(147, 51, 234, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.1);
}

.form-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-gold);
    margin-bottom: 16px;
    font-weight: 500;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    flex: 1;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(147, 51, 234, 0.2);
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.radio-label input[type="radio"]:checked ~ .radio-text {
    color: white;
    font-weight: 500;
}

.radio-label input[type="radio"]:focus + .radio-custom {
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.3);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.radio-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

/* Form Layout */
.form-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-column .form-section-title {
    margin-bottom: 0;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
}

.required {
    color: var(--primary-purple);
    margin-left: 4px;
}

/* Form Inputs - Minimal Shop Style */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.help-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}

/* Error State */
.field-error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.error-message {
    font-size: 12px;
    color: #ef4444;
    display: none;
}

.error-message.show {
    display: block;
}

/* Optional Badge */
.optional-badge {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-left: 6px;
}

/* Subsections */
.subsection-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 24px 0 12px 0;
}

.subsection-help {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Social Media Section */
#social_media_section .form-group {
    margin-bottom: 16px;
}

/* Account Section */
.account-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-help-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* Agreement Checkbox */
.form-agreement {
    margin: var(--space-xl) 0;
    padding: 20px;
    background: rgba(147, 51, 234, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.text-gold {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.text-gold:hover {
    color: var(--gold-light);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: var(--space-xl);
}

.form-actions .btn {
    min-width: 200px;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.form-success-message {
    padding: var(--space-xl);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-success-message svg {
    color: #10b981;
    margin-bottom: 16px;
}

.form-success-message h3 {
    font-size: 20px;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
}

.form-success-message p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Error Banner */
.form-error-banner {
    padding: 16px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-lg);
}

.form-error-banner svg {
    color: #ef4444;
    flex-shrink: 0;
}

.form-error-banner span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* ====== CONTACT CTA ====== */
.contact-cta {
    padding: var(--space-3xl) 0;
    background: rgba(147, 51, 234, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.cta-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(147, 51, 234, 0.3);
    color: white;
}

.cta-link svg {
    width: 20px;
    height: 20px;
    color: var(--primary-purple);
}

/* ====== RESPONSIVE DESIGN ====== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .distributor-hero {
        padding: var(--space-2xl) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-xl);
        padding: var(--space-xl) 0;
    }

    .stat-number {
        font-size: 2rem;
    }

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

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

    .tier-info-card {
        padding: 32px 24px;
    }

    .tier-info-card h3 {
        font-size: 20px;
    }

    .tier-info-card p {
        font-size: 14px;
    }

    .tier-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .application-wrapper {
        padding: var(--space-lg);
    }

    .form-columns {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .distributor-type-section {
        padding: 20px;
    }

    .tier-cta {
        padding: 24px 20px;
    }

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

    .cta-link {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .application-wrapper {
        padding: var(--space-md);
    }

    .form-header {
        padding-bottom: var(--space-md);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .benefit-card,
    .tier-info-card,
    .application-wrapper {
        border-width: 2px;
    }

    .field-error {
        border-color: #ff0000 !important;
    }
}

/* Touch Devices */
@media (pointer: coarse) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .btn {
        min-height: 48px;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
