/* Amazon/Stripe-like modern checkout form styles */

.order-section {
    padding: 100px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
}

.order-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111111;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.order-main-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #111111;
    margin: 0 0 24px 0;
    line-height: 0.9;
}

.order-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #4b5563;
    font-weight: 450;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.4;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 50px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.back-link:hover {
    transform: translateY(-1px);
    background: #333333;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.order-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

/* Left Column: Form Steps */
.order-form-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-step {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.form-step.inactive {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

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

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* Plan Selection */
.plan-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.plan-option {
    position: relative;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

/* Plan Specific Hover & Selected States */

/* Starter (Blue) */
#plan-starter:hover {
    border-color: #7dd3fc;
    transform: translateY(-2px);
}
#plan-starter.selected {
    border-color: #0ea5e9;
    background: rgba(125, 211, 252, 0.05);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}
#plan-starter input[type="radio"] {
    accent-color: #0ea5e9;
}

/* Premium (Purple) */
#plan-premium:hover {
    border-color: #e0a3ff;
    transform: translateY(-2px);
}
#plan-premium.selected {
    border-color: #a259ff;
    background: rgba(162, 89, 255, 0.05);
    box-shadow: 0 8px 24px rgba(162, 89, 255, 0.15);
}
#plan-premium input[type="radio"] {
    accent-color: #a259ff;
}

/* Confort (Teal) */
#plan-confort:hover {
    border-color: #2dd4bf;
    transform: translateY(-2px);
}
#plan-confort.selected {
    border-color: #14b8a6;
    background: rgba(45, 212, 191, 0.05);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.15);
}
#plan-confort input[type="radio"] {
    accent-color: #14b8a6;
}

.plan-option:hover .plan-price {
    color: #000000;
}

.plan-option.selected .plan-price {
    color: #000000;
}

.plan-option input[type="radio"] {
    position: absolute;
    top: 20px;
    right: 20px;
}

.plan-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 5px;
    display: block;
}

.plan-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    display: block;
    margin-bottom: 10px;
}

.plan-features {
    font-size: 0.85rem;
    color: #555;
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    margin-bottom: 4px;
    padding-left: 14px;
    position: relative;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

/* Billing Cycle */
.billing-cycle {
    display: flex;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.cycle-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
}

.cycle-option.active {
    background: white;
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.save-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 700;
}

/* Form Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.input-field {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.input-field:focus {
    outline: none;
    border-color: #224cb4;
    box-shadow: 0 0 0 3px rgba(34, 76, 180, 0.1);
}

/* Right Column: Order Summary */
.order-summary {
    position: sticky;
    top: 120px;
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    height: fit-content;
    align-self: flex-start;
    z-index: 10;
    transition: top 0.3s ease;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #000000;
    display: inline-block;
    /* Required for background-clip to work nicely on some browsers/display flows */
    width: 100%;
    /* Restore width behavior */
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #111;
}

.submit-btn {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    background: #111111;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .order-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .order-summary {
        position: relative;
        top: 0;
        order: 2;
    }
}

@media (max-width: 600px) {
    .order-section {
        padding: 100px 0 40px;
    }

    .order-header {
        margin-bottom: 30px;
    }

    .order-main-title {
        font-size: 1.8rem;
    }

    .form-step {
        padding: 20px;
        border-radius: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .plan-selection {
        grid-template-columns: 1fr;
    }

    .plan-price {
        font-size: 1.2rem;
    }

    .order-container {
        padding: 0 15px;
    }

    .back-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .header-nav {
        padding: 12px 16px !important;
    }
}