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

:root {
    --brand-primary: #d46a5a;
    --brand-secondary: #e08577;
    --brand-dark: #1a202c;
    --brand-white: #ffffff;
    --brand-bg: #fafafa;
    --brand-glass: rgba(255, 255, 255, 0.98);
    --brand-border: #e2e8f0;
    --brand-shadow: 0 4px 20px rgba(212, 106, 90, 0.05);
    --brand-shadow-lg: 0 40px 80px rgba(212, 106, 90, 0.1);
    --radius-xl: 30px;
    --radius-lg: 12px;
    --radius-md: 8px;
}

.form-page-active {
    background-color: var(--brand-bg);
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 87, 255, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--brand-dark);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

.premium-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Massive Bold Hero */
.premium-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.premium-hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--brand-dark);
}

.premium-hero .gradient-text {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-hero p {
    font-size: 1.4rem;
    color: rgba(10, 20, 48, 0.5);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* Advanced Card Implementation */
.premium-card {
    background: var(--brand-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--brand-shadow);
    padding: 50px;
    margin-bottom: 40px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

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

.step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 87, 255, 0.2);
}

/* Horizontal Class Strip */
.classes-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) transparent;
}

.classes-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.classes-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 10px;
}

.class-smart-card {
    min-width: 300px;
    max-width: 300px;
    height: 180px;
    background: #fff;
    border: 2px solid var(--brand-border);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    user-select: none;
}

.class-smart-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
}

.class-smart-card.active {
    border-color: var(--brand-primary);
    background: #f0f5ff;
    box-shadow: 0 15px 30px rgba(0, 87, 255, 0.1);
}

.class-smart-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.class-id {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(0, 87, 255, 0.1);
}

.class-check {
    width: 32px;
    height: 32px;
    border: 2px solid var(--brand-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: transparent;
    transition: 0.3s;
}

.class-smart-card.active .class-check {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.class-title-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.class-desc-text {
    font-size: 0.9rem;
    color: rgba(10, 20, 48, 0.6);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 5px;
}

/* Inputs */
.input-wrap {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--brand-dark);
}

.input-label.required::after {
    content: ' *';
    color: #ef4444;
}

.field-premium {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid var(--brand-border);
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.field-premium:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 5px rgba(0, 87, 255, 0.05);
}

/* Toggle Grid */
.toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.toggle-item {
    cursor: pointer;
}

.toggle-item input {
    position: absolute;
    opacity: 0;
}

.toggle-box {
    padding: 20px;
    text-align: center;
    background: #fff;
    border: 2px solid var(--brand-border);
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: 0.3s;
}

.toggle-item input:checked+.toggle-box {
    border-color: var(--brand-primary);
    background: rgba(0, 87, 255, 0.05);
    color: var(--brand-primary);
}

/* Summary Sidebar */
.summary-aside {
    position: sticky;
    top: 40px;
}

.summary-card {
    background: var(--brand-dark);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 45px;
    box-shadow: var(--brand-shadow-lg);
}

.summary-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: #fff;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.billing-row .price {
    font-weight: 800;
    color: #fff;
}

.billing-row.grand-total {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-secondary);
}

/* Button */
.btn-premium-action {
    width: 100%;
    padding: 22px;
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(0, 87, 255, 0.2);
}

.btn-premium-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 87, 255, 0.3);
    filter: brightness(1.1);
}

/* Modal */
.modal-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-premium img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-card {
    animation: fadeIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@media (max-width: 991px) {
    .premium-hero h1 {
        font-size: 3rem;
    }

    .premium-container {
        padding: 0 20px;
    }

    .premium-card {
        padding: 30px;
    }

    .toggle-grid {
        grid-template-columns: 1fr;
    }
}

/* Added Modern Form Helpers */
.trust-box {
    animation: fadeIn 1s ease-out;
}

.type-card {
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-card:hover {
    border-color: var(--brand-primary) !important;
    transform: translateX(5px);
    background: #f8faff;
}

.upload-zone {
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--brand-primary) !important;
    background: #f0f5ff !important;
}

.step-content {
    animation: fadeIn 0.5s ease-out;
}

.summary-items {
    margin-top: 20px;
}

.class-smart-card {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.class-smart-card:hover {
    transform: scale(1.02);
}

.class-smart-card.active {
    border-color: var(--brand-primary);
    background: #f0f5ff;
}

.class-check {
    background: #f1f5f9;
    color: transparent;
}

.class-smart-card.active .class-check {
    background: var(--brand-primary);
    color: #fff;
}