@font-face {
    font-family: 'Ubuntu';
    src: url('./fonts/Ubuntu-Bold.ttf') format('truetype');
    font-weight: 700;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('./fonts/Ubuntu-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('./fonts/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: white ;
    min-height: 100vh;
    padding: 1.5rem;
    line-height: 1.6;
}

.container {
    max-width: 56.25rem;
    height: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    display: flex;
    flex-direction: row;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress-container {
    background-image: url(images/bg-sidebar-desktop.svg);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 2.5rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    width: 30%;
    border-radius: 1.25rem;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 1.5rem;
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15%;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    background: #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step.active .step-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 0.25rem 0.9375rem rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.step.completed .step-number::before {
    content: '✓';
    font-size: 1.25rem;
}

.step-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    text-align: start;
    transition: color 0.3s ease;
    margin-left: 1rem;
}
#step{
    font-size: 0.75rem;
    color: #64748b;
}
.step.active .step-label {
    color: white;
    font-weight: 600;
}

/* Form Container */
.form-container {
    padding: 2.5rem;
    margin-left: 1.5rem;
    width: 31.25rem;
}

.form-header {
    display: flex  ;
    text-align: center;
    margin-bottom: 2.5rem;
    flex-direction: column;
    align-items: start;
}

.form-header h1 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.form-header p {
    color: #64748b;
    font-size: 1rem;
    max-width: 31.25rem;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step 1: Personal Info */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.25rem;
}

/* Step 2: Select Plan */
.billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.25rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.billing-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.billing-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.plans-grid {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fafafa;
}

.plan-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.plan-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.plan-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.plan-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.plan-description {
    color: #64748b;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.plan-price {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.yearly-bonus {
    text-align: center;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Step 3: Add-ons */
.addons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.addon-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.addon-card:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.addon-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.addon-checkbox {
    position: relative;
    margin-right: 1.25rem;
}

.addon-checkbox input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.25rem;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.addon-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
}

.addon-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.addon-info {
    flex: 1;
}

.addon-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.addon-info p {
    color: #64748b;
    font-size: 0.875rem;
}

.addon-price {
    font-weight: 600;
    color: #3b82f6;
}

/* Step 4: Summary */
.summary-container {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
}

.summary-section {
    margin-bottom: 1.5rem;
}

.selected-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
}

.plan-summary h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.change-btn {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.change-btn:hover {
    color: #1d4ed8;
}

.plan-summary-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.selected-addons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.addon-summary span:first-child {
    color: #64748b;
}

.addon-summary span:last-child {
    color: #1e293b;
    font-weight: 600;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.total-label {
    color: #64748b;
    font-size: 1rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.nav-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-btn.secondary {
    background: transparent;
    color: #64748b;
}

.nav-btn.secondary:hover {
    color: #3b82f6;
    background: #f1f5f9;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem;
    max-width: 31.25rem;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    /* background: linear-gradient(135deg, #10b981, #059669); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 40px;
    color: white; */
    margin: 0 auto 1.5rem;
}

.modal h2 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.modal p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0.625rem;
        border-radius: 1rem;
    }
    
    .progress-container {
        padding: 1.25rem 0.625rem;
    }
    
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-container {
        padding: 1.25rem;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .selected-plan {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .modal {
        padding: 1.5rem;
        margin: 1.25rem;
    }
    .form-header p{
        max-width: 100%;
        text-align: start;
    }
}

@media (max-width: 600px) {
    .container{
        display: flex;
        flex-direction: column;
    }
    .progress-bar {
        /* flex-wrap: wrap;
        gap: 20px; */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    .progress-container{
        background-image: url(images/bg-sidebar-mobile.svg);
        width: 100%;
    }
    .step-label{
        display: none;
    }
    .plans-grid{
        display: flex;
        flex-direction: column;
    }
    
    .form-navigation{
        display: flex;
        flex-direction: row;
    }
    .form-container{
        padding: 1.25rem;
        margin: 0%;
    }
    .form-header p{
        max-width: 100%;
        text-align: start;
    }
    .input-group{
        max-width: 100%;
    }

    *{
        max-width: 100%;
        box-sizing: border-box;
    }
    .form-navigation{
        margin-right: 20%;
    }
    .plan-card{
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }
    .billing-toggle{
        margin-bottom: 0%;
    }
    .addons-list{
        max-width: 100%;
    }
    .summary-container{
        max-width: 100%;
    }
    .modal{
        max-width: 100%; 
        width: 80%;
    }
}
