/**
 * Become an Expert Page Styles
 * JustAnswer-inspired modern design
 */

/* ========================================
   BASE STYLES
   ======================================== */

.become-expert-page {
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.become-expert-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.expert-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.expert-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content-with-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-text {
    padding-top: 1rem;
}

.expert-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.expert-benefits {
    padding: 5rem 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(139, 92, 246, 0.08));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 18px;
    color: white;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.expert-how-it-works {
    padding: 5rem 0;
    background: #f8fafc;
}

.expert-how-it-works .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -1rem;
    width: calc(100% - 80px);
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #ddd6fe);
}

.step-card:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
}

/* ========================================
   REQUIREMENTS SECTION
   ======================================== */

.expert-requirements {
    padding: 5rem 0;
    background: white;
}

.expert-requirements .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 3rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.requirement-item:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.03);
}

.requirement-item svg {
    flex-shrink: 0;
    color: #8b5cf6;
}

.requirement-item span {
    font-size: 0.95rem;
    color: #374151;
}

/* ========================================
   APPLICATION SECTION
   ======================================== */

.expert-application-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.application-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.application-sidebar {
    position: sticky;
    top: 100px;
}

.testimonial-card {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    padding: 2.5rem;
    border-radius: 20px;
    color: white;
    margin-bottom: 2rem;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.testimonial-card blockquote {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.testimonial-card cite {
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.9;
}

.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Application Form Card */
.application-form-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.application-form-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.form-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Form Styles - TIGHT SPACING */
.expert-application-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

/* Remove labels - use placeholders only (but NOT for checkboxes) */
.form-group:not(.checkbox-group) label {
    display: none;
}

/* Checkbox labels should be visible */
.checkbox-group label.checkbox-label {
    display: flex !important;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    margin: 0;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.country-code-select {
    width: 90px !important;
    min-width: 90px;
    max-width: 90px;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0.625rem 0.5rem;
    font-size: 0.85rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
    margin: 0;
    box-sizing: border-box;
}

.country-code-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.phone-input {
    flex: 1;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #8b5cf6;
}

/* Checkboxes */
.checkbox-group {
    margin-top: 0;
    margin-bottom: 0;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #8b5cf6;
}

.checkbox-label a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 2rem;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Form Messages */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.form-footer p {
    font-size: 0.9rem;
    color: #6b7280;
}

.form-footer a {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 1024px) {
    .hero-content-with-form {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .application-wrapper {
        grid-template-columns: 1fr;
    }
    
    .application-sidebar {
        position: static;
        order: 2;
    }
    
    .sidebar-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .expert-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.15rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .step-card::after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .application-form-card {
        padding: 2rem;
    }
    
    .sidebar-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .expert-hero {
        padding: 4rem 0;
    }
    
    .expert-hero h1 {
        font-size: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card,
    .testimonial-card,
    .application-form-card {
        padding: 1.5rem;
    }
    
    .phone-input-wrapper {
        flex-direction: column;
    }
    
    .country-code-select {
        width: 100%;
    }
}

/* ========================================
   BUTTONS (shared with pages.css)
   ======================================== */

.become-expert-page .btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.become-expert-page .btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a202c;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.become-expert-page .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5);
    color: #1a202c;
}

.become-expert-page .btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
}

