/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #3498db;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--text-color);
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-bg);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto; /* Allow scrolling if modal is too tall */
    padding: 20px 0;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    margin: 5% auto;
    padding: 40px 30px 30px;
    width: 90%;
    max-width: 450px;
    min-height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.close-modal:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    transform: scale(1.1);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
    gap: 0;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 3px;
}

.tab-btn:hover:not(.active) {
    color: #555;
    background: rgba(46, 204, 113, 0.05);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Form Styles */
.auth-form-modal .form-group {
    margin-bottom: 20px;
}

.auth-form-modal label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.auth-form-modal input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-form-modal input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    outline: none;
}

.auth-form-modal input:hover {
    border-color: #bdc3c7;
}

/* Fix: Added missing dot before form-group */
.form-group {
    margin-bottom: 20px;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

/* Auth Message */
.auth-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.auth-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.auth-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: 400px;
        padding: 35px 20px 25px;
    }
    
    .close-modal {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .tab-btn {
        font-size: 16px;
        padding: 12px;
    }
    
    .auth-form-modal input {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn-full {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 350px;
        padding: 30px 15px 20px;
    }
    
    .modal-content h2 {
        font-size: 22px;
    }
    
    .tab-btn {
        font-size: 15px;
        padding: 10px;
    }
    
    .auth-form-modal input {
        padding: 10px;
    }
    
    .close-modal {
        right: 10px;
        top: 10px;
        width: 30px;
        height: 30px;
        font-size: 24px;
    }
}

/* Optimized Homepage Styles */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-benefits {
    margin-bottom: 30px;
}

.benefit-item {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.trust-indicators {
    display: flex;
    gap: 30px;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.trust-text {
    font-size: 0.9rem;
    color: #666;
}

/* Hero Form Styles */
.hero-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.lead-capture-form h3 {
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.lead-capture-form > p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.lead-capture-form .form-group {
    margin-bottom: 20px;
}

.lead-capture-form .form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lead-capture-form .form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    outline: none;
}

.lead-capture-form .form-group input:hover {
    border-color: #bdc3c7;
}

.lead-capture-form .form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.lead-capture-form .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lead-capture-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.lead-capture-form .btn-primary:active {
    transform: translateY(0);
}

.lead-capture-form .form-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
    padding: 0 10px;
}

.form-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 15px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--light-bg);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.process-step h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.center-cta {
    text-align: center;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
}

.benefits-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--light-bg);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author strong {
    display: block;
    color: var(--text-color);
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Final CTA */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Form Group Spacing */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Input field focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1) !important;
    outline: none !important;
}

/* Button loading state */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .trust-indicators {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Hero Form Responsive */
    .hero-form {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .lead-capture-form h3 {
        font-size: 1.5rem;
    }
    
    .lead-capture-form > p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .lead-capture-form .form-group input {
        padding: 12px;
        font-size: 15px;
    }
    
    .lead-capture-form .btn-primary {
        padding: 14px;
        font-size: 15px;
    }
    
    .lead-capture-form .form-note {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-form {
        padding: 20px 15px;
    }
    
    .lead-capture-form h3 {
        font-size: 1.3rem;
    }
    
    .lead-capture-form > p {
        font-size: 0.9rem;
    }
    
    .lead-capture-form .form-group input {
        padding: 10px;
        font-size: 14px;
    }
    
    .lead-capture-form .btn-primary {
        padding: 12px;
        font-size: 14px;
    }

    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* OPay Payment Styles */
.opay-details-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #2ecc71;
}

.opay-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.opay-header i {
    font-size: 40px;
    color: #2ecc71;
}

.opay-steps {
    margin: 25px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    background: #2ecc71;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.opay-account {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.opay-amount {
    font-size: 24px;
    font-weight: bold;
    color: #2ecc71;
    margin: 10px 0;
}

.opay-reference {
    background: #2ecc71;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
}

.btn-copy {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

.btn-copy:hover {
    background: #2980b9;
}

.opay-qr {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.qr-code {
    display: inline-block;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.qr-note {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.opay-info {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #2ecc71;
}

.opay-info ul {
    margin-left: 20px;
    margin-top: 10px;
}

.opay-info li {
    margin-bottom: 8px;
}

/* Bank details card */
.bank-details-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #3498db;
}

/* QR Code fallback */
.qr-fallback {
    padding: 20px;
    background: white;
    border-radius: 8px;
}

/* Payment details sections */
.payment-details {
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* OPay badge */
.opay-badge {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}