﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(135deg, #1d2671, #c33764);
    color: #333;
}

/* ---------- HEADER ---------- */
header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
    transition: color 0.3s ease;
}

    nav a:hover {
        color: #ffcccb;
    }

/* ---------- PRICING ---------- */
.pricing-section {
    padding: 80px 40px;
    text-align: center;
}

    .pricing-section h1 {
        color: #fff;
        margin-bottom: 40px;
        font-size: 42px;
    }

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.plan {
    background: #fff;
    width: 260px;
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

    .plan:nth-child(1) {
        animation-delay: 0.2s;
    }

    .plan:nth-child(2) {
        animation-delay: 0.4s;
    }

    .plan:nth-child(3) {
        animation-delay: 0.6s;
    }

    .plan:hover {
        transform: translateY(-15px) scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

.popular {
    border: 3px solid #ff4b2b;
}

.plan h2 {
    margin-bottom: 15px;
}

.plan ul {
    list-style: none;
    margin: 25px 0;
}

    .plan ul li {
        margin: 12px 0;
    }

button {
    background: #ff4b2b;
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    background: #ff416c;
    transform: scale(1.1);
}

/* ---------- DEMO ---------- */
.demo-section {
    background: #fff;
    padding: 70px 40px;
    text-align: center;
}

    .demo-section h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .demo-section p {
        max-width: 600px;
        margin: auto;
        margin-bottom: 30px;
        color: #555;
    }

/* ---------- CONTACT ---------- */
.contact-section {
    color: #fff;
    padding: 60px 40px;
    text-align: center;
}

    .contact-section h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .contact-section p {
        margin-bottom: 10px;
        color: #ccc;
    }

/* ---------- FOOTER ---------- */
footer {
    color: #fffefe;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* ---------- ANIMATION ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRICING TOGGLE (FIXED DESIGN) ===== */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 50px;
}

.toggle-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* Hide radios */
.billing-toggle input {
    display: none;
}

/* Switch background */
.toggle-switch {
    width: 46px;
    height: 24px;
    background: #ff4b2b;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

/* Knob */
.toggle-knob {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

/* Move knob */
#billing-monthly:checked + .toggle-switch .toggle-knob {
    transform: translateX(22px);
}

#billing-weekly:checked ~ .pricing-container .weekly {
    display: inline;
}

#billing-monthly:checked ~ .pricing-container .monthly {
    display: inline;
}


#billing-weekly:checked ~ .billing-toggle span:first-child,
#billing-monthly:checked ~ .billing-toggle span:last-child {
    font-weight: 600;
    color: #fff;
}


/* Overlay */
.modal {
    display: none;
    /* IMPORTANT */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


/* Card */
.modal-card {
    background: #ffffff;
    width: 92%;
    max-width: 420px;
    border-radius: 12px;
    padding: 28px 30px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: scaleIn 0.25s ease;
}

.buy {
    height: 725px;
}

/* Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close button */
.close-btn {
    position: absolute;
    top: -3px;
    right: -11px;
    border: none;
    background: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
}

    .close-btn:hover {
        color: #ff4b2b;
    }

/* Heading */
.modal-card h2 {
    margin: 0;
    text-align: center;
    color: #222;
    font-size: 24px;
}

.modal-card p {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 8px 0 22px;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #333;
    }

    .form-group input {
        width: 100%;
        padding: 11px 12px;
        border-radius: 6px;
        border: 1px solid #ddd;
        font-size: 14px;
        transition: all 0.2s ease;
    }

        .form-group input:focus {
            outline: none;
            border-color: #ff4b2b;
            box-shadow: 0 0 0 2px rgba(255, 75, 43, 0.15);
        }

/* Submit button */
.submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4b2b, #ff6a3d);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(255, 75, 43, 0.35);
    }


/* Sucess popup */
.success-card {
    background: #fff;
    width: 90%;
    max-width: 360px;
    padding: 32px 28px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: popIn 0.3s ease;
}

/* Tick circle */
.tick-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tickBounce 0.5s ease;
}

/* Headings */
.success-card h2 {
    margin: 10px 0 6px;
    color: #222;
}

.success-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 22px;
}

/* OK Button */
.ok-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: #28a745;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

    .ok-btn:hover {
        background: #218838;
    }

/* Animations */
@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tickBounce {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


/* Bu Now */

input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    font-size: 14px;
    cursor: pointer;
}

.file-hint {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    display: block;
}


/* Default: weekly visible */
/* Initial state: show weekly prices */
.weekly {
    display: inline;
}

.monthly {
    display: none;
}

#billing-monthly:checked ~ .toggle-switch .toggle-knob {
    transform: translateX(22px);
}

.course-highlights {
    margin-top: 20px;
}

    .course-highlights ul {
        list-style: none;
        padding: 0;
        text-align: left
    }

    .course-highlights li {
        font-size: 16px;
        margin-bottom: 8px;
        align-items: center;
        gap: 8px;
    }


#contact {
    scroll-margin-top: 80px;
}

html {
    scroll-behavior: smooth;
}


.logo,
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-left: -40px;
}

    .logo img {
        height: 25px;
        width: auto;
    }

.company-name {
    font-size: 20px;
    font-weight: 600;
    color: #fef6f6;
}

.bold {
    font-weight: bold;
}

.error-msg {
    color: red;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}
