/* =====================================================
   C2G AFFILIATE APPLICATION PAGE
   Matches main C2G website styling
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Use C2G color scheme */
:root {
    --primary-blue: #0052FF;
    --primary-dark: #0d1f33;
    --text-dark: #212529;
    --text-body: #495057;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #FFFFFF;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-body);
    line-height: 1.7;
}

/* Header (matches main site) */
/* Header and Nav styles are inherited from index.css to ensure exact match */

/* Hero Section */
.affiliate-hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.hero-content-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-light);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-gradient-blue {
    background: linear-gradient(90deg, var(--primary-blue) 0%, #0045d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Stats Grid */
.affiliate-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: var(--white);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .benefits-grid-layout {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Icon Colors (match C2G style) */
.bg-blue-light {
    background: rgba(0, 82, 255, 0.1);
}

.text-blue {
    color: var(--primary-blue);
}

.bg-green-light {
    background: rgba(40, 167, 69, 0.1);
}

.text-green {
    color: #28a745;
}

.bg-purple-light {
    background: rgba(108, 117, 125, 0.1);
}

.text-purple {
    color: #7952b3;
}

.bg-orange-light {
    background: rgba(255, 159, 64, 0.1);
}

.text-orange {
    color: #ff9f40;
}

.bg-teal-light {
    background: rgba(32, 201, 151, 0.1);
}

.text-teal {
    color: #20c997;
}

.bg-red-light {
    background: rgba(220, 53, 69, 0.1);
}

.text-red {
    color: #dc3545;
}

/* Application Form Section */
.application-form-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-group label i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
}

.form-text,
.field-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.text-danger {
    color: #dc3545;
}

/* Social Account Fields */
.social-account-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.social-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.social-card-title {
    font-weight: 600;
    color: var(--primary-blue);
}

.remove-social-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-social-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.social-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.3);
}

.btn-primary:hover {
    background: #0045d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: #ced4da;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Form Message */
.form-message {
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 2rem;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FAQ Section */
.faq-section-affiliate {
    padding: 80px 0;
    background: var(--white);
}

.faq-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .faq-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .faq-grid-layout {
        grid-template-columns: 1fr;
    }
}

.faq-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faq-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.faq-card h3 i {
    margin-right: 0.5rem;
}

.faq-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.cta-section-affiliate {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0045d1 100%);
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--white);
    color: var(--primary-blue);
    font-size: 1.1rem;
    padding: 15px 35px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Utilities */
.glass-panel {
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

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

.text-muted {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {

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

    .affiliate-stats-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

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

    .form-container {
        padding: 2rem 1.5rem;
    }

    .social-fields-grid {
        grid-template-columns: 1fr;
    }
}