/* School Smart SA Landing Page - Enhanced Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    color: #4a5568;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #FF8500 0%, #ff9500 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 133, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 133, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #002395 0%, #0033cc 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 35, 149, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 35, 149, 0.4);
}

.btn-header {
    background: #FF8500;
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

.btn-hero {
    font-size: 18px;
    padding: 20px 40px;
    margin: 32px 0;
}

.btn-submit {
    width: 100%;
    font-size: 18px;
    padding: 20px;
    margin-top: 24px;
}

.btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Badges */
.badge, .hero-badge, .urgency-badge, .caps-badge, .bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 133, 0, 0.1);
    color: #FF8500;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.bonus-badge {
    background: linear-gradient(135deg, rgba(255, 133, 0, 0.1) 0%, rgba(0, 35, 149, 0.1) 100%);
    color: #002395;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #002395;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('hero-bg.jpg') center/cover;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: #4a5568;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-pricing {
    margin: 40px 0;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 2rem;
    font-weight: 700;
    color: #FF8500;
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    color: #FF8500;
}

.price-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: #002395;
}

.price-comparison {
    color: #718096;
    text-decoration: line-through;
    font-size: 16px;
}

.hero-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    font-size: 14px;
    color: #718096;
}

.feature-separator {
    color: #cbd5e0;
}

.trust-indicators {
    display: flex;
    flex-direction: column; /* Changed to column for vertical arrangement */
    align-items: flex-start; /* Align items to the start of the cross axis */
    justify-content: center;
    gap: 10px; /* Reduced gap for tighter spacing */
    margin-top: 40px;
    flex-wrap: wrap;
    padding: 20px; /* Add padding to give space for the border */
    border: 2px solid #e2e8f0; /* Add border */
    border-radius: 12px; /* Add border-radius */
    max-width: fit-content; /* Adjust width to content */
    margin-left: auto; /* Center the block */
    margin-right: auto; /* Center the block */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.trust-icon {
    color: #48bb78;
    font-weight: 600;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works Section */
.how-it-works {
    background: #ffffff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 64px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #FF8500;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #FF8500;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.step-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Bonus Features Section */
.bonus-features {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.bonus-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF8500, #002395);
}

.bonus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #FF8500;
}

.bonus-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.bonus-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.bonus-description {
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.5;
}

.bonus-value {
    background: linear-gradient(135deg, #FF8500, #ff9500);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.bonus-total {
    margin-top: 48px;
    text-align: center;
}

.bonus-total-content {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid #FF8500;
}

.bonus-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.bonus-total-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #FF8500;
}

.bonus-total-note {
    font-size: 14px;
    color: #48bb78;
    font-weight: 600;
}

/* Why Join Early Section */
.why-join-early {
    background: linear-gradient(135deg, #002395 0%, #0033cc 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.why-join-early::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.why-join-early .section-header {
    position: relative;
    z-index: 1;
}

.why-join-early .section-title,
.why-join-early .section-subtitle {
    color: white;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
    position: relative;
    z-index: 1;
}

.reason-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: left; /* Align text to left */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.reason-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.reason-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.reason-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.reason-highlight {
    background: #FF8500;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.urgency-counters {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.counter {
    text-align: center;
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: #FF8500;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.counter-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Subjects Section */
.subjects {
    background: #ffffff;
}

.subjects-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 48px 0 64px;
}

.timeline-item {
    background: #f8fafc;
    padding: 32px 24px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.timeline-featured {
    background: linear-gradient(135deg, rgba(255, 133, 0, 0.1) 0%, rgba(255, 133, 0, 0.05) 100%);
    border-color: #FF8500;
}

.timeline-badge {
    background: #FF8500;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.timeline-description {
    color: #4a5568;
    margin-bottom: 12px;
}

.timeline-status {
    background: #48bb78;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    border: 2px solid #e2e8f0; /* Add border to the grid container */
    border-radius: 12px; /* Add border-radius */
    padding: 20px; /* Add padding inside the border */
}

.subject-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.subject-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #FF8500;
}

.subject-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.subject-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.subject-grades {
    color: #4a5568;
    margin-bottom: 16px;
    font-size: 14px;
}

.subject-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-launching {
    background: #FF8500;
    color: white;
}

.status-coming {
    background: #e2e8f0;
    color: #4a5568;
}

/* CAPS Credibility Section */
.caps-credibility {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.credibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.credibility-item {
    text-align: center;
    padding: 32px 24px;
}

.credibility-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.credibility-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.credibility-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Signup Section */
.signup {
    background: #ffffff;
    padding: 100px 0;
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
}

.signup-form-container {
    background: #f8fafc;
    padding: 48px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    margin-top: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #FF8500;
    box-shadow: 0 0 0 3px rgba(255, 133, 0, 0.1);
}

.pricing-summary {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin: 32px 0;
}

.pricing-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pricing-label {
    font-weight: 600;
    color: #1a1a1a;
}

.pricing-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FF8500;
}

.pricing-savings {
    text-align: center;
    color: #48bb78;
    font-weight: 600;
    font-size: 14px;
}

.form-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.form-trust .trust-item {
    font-size: 12px;
    color: #718096;
}

/* Payment Options */
.payment-options {
    margin-top: 32px;
}

.payment-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

.payment-option {
    margin-bottom: 16px; /* Add spacing between payment options */
}

.payment-button-container {
    /* Styles for PayPal button container */
    width: 100%;
    min-height: 45px; /* Ensure enough height for PayPal button */
}

.btn-payment {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 8px;
}

.payment-note {
    font-size: 12px;
    color: #718096;
    text-align: center;
    margin-top: 8px;
}

/* Footer */
.footer {
    background: #f8fafc;
    padding: 60px 0 30px;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.footer-text {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.footer-copyright {
    color: #718096;
    font-size: 14px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 3rem;
    }
    
    .price-label {
        font-size: 1.25rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 16px;
    }
    
    .steps-grid,
    .bonus-grid,
    .reasons-grid,
    .subjects-grid,
    .credibility-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .urgency-counters {
        gap: 32px;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .signup-form-container {
        padding: 32px 24px;
    }
    
    .form-trust {
        gap: 16px;
    }
    
    .bonus-total-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .subjects-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .feature-separator {
        display: none;
    }
    
    .btn-hero {
        font-size: 16px;
        padding: 18px 32px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .urgency-title {
        font-size: 1.5rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Error States */
.field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.form-input.error,
.form-select.error {
    border-color: #ef4444;
}

/* Success States */
.payment-success-message,
.payment-error-message,
.payment-cancel-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 10000;
    max-width: 400px;
    width: 90%;
}

.success-content,
.error-content,
.cancel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon,
.error-icon,
.cancel-icon {
    font-size: 3rem;
}

/* Wise Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.payment-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.payment-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #718096;
}

.bank-details p {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #4a5568;
}

.payment-modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.form-select:focus {
    outline: 2px solid #FF8500;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #FF8500;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #002395;
        border: 2px solid #000;
    }
}