/* =============================================================================
   Order Wizard — Complete Fluid CSS
   ============================================================================= */

#subscription-wizard {
    /* ── 1. ROOT VARIABLES & FLUID TOKENS ── */
    --wiz-accent: #ff6b35;
    --wiz-accent-dark: #e55a24;
    --wiz-accent-glow: rgba(255, 107, 53, .25);
    --wiz-text: #1a1a2e;
    --wiz-text-muted: #666680;
    --wiz-bg: #ffffff;
    --wiz-surface: #f7f7fb;
    --wiz-border: #e8e8f0;
    --wiz-radius: 1rem;
    --wiz-shadow: 0 4px 24px rgba(0, 0, 0, .08);

    --progress-active: #ff6b35;
    --progress-done: #ff6b35;
    --progress-idle: #ddd;
    --connector-h: 3px;

    --circle-size-3: clamp(100px, 22vw, 180px);
    --circle-size-m: clamp(88px, 18vw, 150px);
    --circle-border: clamp(3px, 0.4vw, 6px);

    --wiz-gap: clamp(16px, 5vw, 50px);
    --wiz-pad-x: clamp(16px, 5vw, 48px);
    --wiz-pad-y: clamp(24px, 5vw, 56px);
    --section-gap: clamp(28px, 5vw, 48px);
    --card-pad: clamp(18px, 3vw, 32px);

    font-family: inherit;
    color: var(--wiz-text);
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── 2. WIZARD SHELL ── */
.sub-wizard *,
.sub-wizard *::before,
.sub-wizard *::after {
    box-sizing: border-box;
}

/* ── 3. PROGRESS BAR ── */
.sub-wizard .wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: var(--section-gap);
}

.sub-wizard .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    flex-shrink: 0;
}

.sub-wizard .step-number {
    width: clamp(30px, 5vw, 42px);
    height: clamp(30px, 5vw, 42px);
    border-radius: 50%;
    background: var(--progress-idle);
    color: #fff;
    font-size: clamp(12px, 2vw, 15px);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .2s;
    flex-shrink: 0;
}

.sub-wizard .progress-step.active .step-number {
    background: var(--progress-active);
    transform: scale(1.15);
}

.sub-wizard .progress-step.completed .step-number {
    background: var(--progress-done);
}

.sub-wizard .step-label {
    font-size: clamp(10px, 1.8vw, 13px);
    font-weight: 600;
    color: var(--wiz-text-muted);
    white-space: nowrap;
}

.sub-wizard .progress-step.active .step-label,
.sub-wizard .progress-step.completed .step-label {
    color: var(--wiz-accent);
}

.sub-wizard .progress-connector {
    flex: 1;
    height: var(--connector-h);
    background: var(--progress-idle);
    margin: 0 clamp(4px, 1.5vw, 12px);
    margin-bottom: clamp(14px, 3vw, 22px);
    border-radius: 2px;
    transition: background .3s;
    min-width: 16px;
}

.sub-wizard .progress-connector.active {
    background: var(--progress-done);
}

/* ── 4. STEP LAYOUT & TYPOGRAPHY ── */
.sub-wizard .wizard-steps {
    position: relative;
}

.sub-wizard .wizard-step {
    display: none;
    animation: wizFadeIn .25s ease;
}

.sub-wizard .wizard-step.active {
    display: block;
}

@keyframes wizFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sub-wizard .wizard-step-title {
    text-align: center;
    font-size: clamp(20px, 4.5vw, 34px);
    font-weight: 800;
    color: var(--wiz-text);
    margin: 0 0 clamp(6px, 1.5vw, 12px);
    line-height: 1.2;
}

.sub-wizard .wizard-subtitle {
    text-align: center;
    font-size: clamp(13px, 2vw, 16px);
    color: var(--wiz-text-muted);
    margin: 0 0 clamp(24px, 5vw, 44px);
    line-height: 1.5;
}

/* ── 5. CIRCLE CARD SYSTEM (Steps 1–3) ── */
.sub-wizard .wizard-circle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--wiz-gap);
    margin-bottom: var(--section-gap);
}

.sub-wizard .wizard-circle-grid.three-cols {
    --circle-size: var(--circle-size-3);
}

.sub-wizard .wizard-circle-grid.multi-cols {
    --circle-size: var(--circle-size-m);
    max-width: 860px;
    margin: 0 auto;
}

.sub-wizard .wizard-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    cursor: pointer;
    min-width: 0;
}

.sub-wizard .wizard-circle-card input[type="radio"],
.sub-wizard .wizard-circle-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sub-wizard .wcc-circle {
    width: var(--circle-size, 140px);
    height: var(--circle-size, 140px);
    border-radius: 50%;
    background-color: var(--circle-bg, #cccccc);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: var(--circle-border) solid transparent;
    outline-offset: clamp(3px, 0.5vw, 6px);
    transition: outline-color .2s, transform .2s, box-shadow .2s;
    flex-shrink: 0;
}

.sub-wizard .wizard-circle-card:hover .wcc-circle {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.sub-wizard .wizard-circle-card input:checked ~ .wcc-circle {
    outline-color: var(--wiz-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px var(--wiz-accent-glow);
}

.sub-wizard .wcc-image {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.sub-wizard .wcc-label {
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 700;
    color: var(--wiz-text);
    text-align: center;
}

.sub-wizard .wcc-indicator {
    width: clamp(18px, 3vw, 24px);
    height: clamp(18px, 3vw, 24px);
    border-radius: 50%;
    border: 2.5px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
    position: relative;
}

.sub-wizard .wcc-indicator::after {
    content: '';
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: var(--wiz-accent);
    opacity: 0;
    transition: opacity .2s, transform .2s;
    transform: scale(.4);
}

.sub-wizard .wizard-circle-card input:checked ~ .wcc-indicator {
    border-color: var(--wiz-accent);
}

.sub-wizard .wizard-circle-card input:checked ~ .wcc-indicator::after {
    opacity: 1;
    transform: scale(1);
}

.sub-wizard .wizard-circle-card input[type="checkbox"] ~ .wcc-indicator {
    border-radius: clamp(4px, 1vw, 7px);
}

/* ── 6. PLAN CARDS (Step 4) ── */
.sub-wizard .wizard-cards {
    display: grid;
    gap: clamp(12px, 2.5vw, 24px);
    margin-bottom: var(--section-gap);
}

.sub-wizard .wizard-cards.two-cols { grid-template-columns: repeat(2, 1fr); }
.sub-wizard .wizard-cards.three-cols { grid-template-columns: repeat(3, 1fr); }

.sub-wizard .wizard-card {
    position: relative;
    cursor: pointer;
    border-radius: var(--wiz-radius);
    border: 2.5px solid var(--wiz-border);
    background: var(--wiz-bg);
    transition: border-color .2s, box-shadow .2s, transform .2s;
    display: block;
    overflow: hidden; /* Επιτρέπει στο ribbon να "κόβεται" σωστά στις γωνίες */
}

.sub-wizard .wizard-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sub-wizard .wizard-card:hover {
    border-color: var(--wiz-accent);
    box-shadow: var(--wiz-shadow);
    transform: translateY(-2px);
}

.sub-wizard .wizard-card:has(input:checked) {
    border-color: var(--wiz-accent);
    box-shadow: 0 0 0 3px var(--wiz-accent-glow), var(--wiz-shadow);
}

/* Ribbon Badge System */
.sub-wizard .plan-badge-ribbon {
    position: absolute;
    top: 35px;
    right: -35px;
    background: var(--wiz-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 40px;
    transform: rotate(45deg);
    z-index: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
}

.sub-wizard .plan-content {
    padding: var(--card-pad);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 12px);
    height: 100%;
}

.sub-wizard .plan-image {
    width: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--wiz-accent);
    margin-left:auto;
    margin-right:auto;
}

.sub-wizard .plan-name {
    font-size: clamp(15px, 2.5vw, 20px);
    font-weight: 800;
    color: var(--wiz-text);
    padding-right: 35px; /* Αποφυγή επικάλυψης με το ribbon */
}

.sub-wizard .plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
}

.sub-wizard .plan-regular-price {
    font-size: clamp(13px, 2vw, 17px);
    text-decoration: line-through;
    color: var(--wiz-text-muted);
}

.sub-wizard .plan-sale-price { color: var(--wiz-accent); }
.sub-wizard .plan-period { font-size: clamp(12px, 1.8vw, 15px); color: var(--wiz-text-muted); }

.sub-wizard .plan-description {
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--wiz-text-muted);
    line-height: 1.6;
}

.sub-wizard .plan-features {
    list-style: none;
    margin-top: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-wizard .plan-features li {
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--wiz-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── 7. SUMMARY BLOCK ── */
.sub-wizard .wizard-summary {
    background: var(--wiz-surface);
    border-radius: var(--wiz-radius);
    padding: clamp(16px, 3vw, 28px) clamp(16px, 3.5vw, 32px);
    margin-bottom: var(--section-gap);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-wizard .summary-row { display: flex; align-items: center; gap: 12px; }
.sub-wizard .summary-label { font-weight: 700; font-size: clamp(13px, 1.8vw, 15px); min-width: 72px; }
.sub-wizard .summary-value { flex: 1; font-size: clamp(13px, 1.8vw, 15px); color: var(--wiz-text-muted); }

.sub-wizard .summary-edit {
    background: none;
    border: 1.5px solid var(--wiz-accent);
    color: var(--wiz-accent);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.sub-wizard .summary-edit:hover { background: var(--wiz-accent); color: #fff; }

/* ── 8. NAVIGATION BUTTONS ── */
.sub-wizard .wizard-nav {
    display: flex;
    justify-content: space-between;
    padding-top: clamp(20px, 4vw, 36px);
    gap: 16px;
}

.sub-wizard .wizard-btn {
    padding: clamp(11px, 2vw, 16px) clamp(20px, 4vw, 40px);
    border-radius: 12px;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: .2s;
}

.sub-wizard .next-btn, .sub-wizard .submit-btn { background: var(--wiz-accent); color: #fff; }
.sub-wizard .next-btn:disabled, .sub-wizard .submit-btn:disabled { opacity: .4; cursor: not-allowed; }
.sub-wizard .prev-btn { background: var(--wiz-surface); color: var(--wiz-text); }

/* ── 9. RESPONSIVE BREAKPOINTS ── */
@media (max-width: 640px) {
    .sub-wizard .wizard-cards.two-cols, .sub-wizard .wizard-cards.three-cols { grid-template-columns: 1fr; }
    .sub-wizard .wizard-nav { flex-direction: column-reverse; }
    .sub-wizard .wizard-btn { width: 100%; text-align: center; }
}

@media (max-width: 360px) {
    .sub-wizard .step-label { display: none; }
}