/* ==========================================================================
   ORDER.CSS - Kompletný štýl pre Objednávkový formulár (Oprava klikania)
   ========================================================================== */

/* --- ODSADENIE OD FIXNÉHO MENU ZHORA --- */
.main-content-wrapper {
    margin-top: 60px !important;
    width: 100%;
}

.order-hero { 
    max-width: 1250px; 
    margin: 0 auto 40px auto !important; 
    padding: 40px 20px; 
    background: var(--bg-panel); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    text-align: left;
}
.order-hero h1 { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; color: white; text-transform: uppercase; }
.order-hero p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* UPOZORNENIE (BANNER) */
.preview-banner { 
    background-color: rgba(249, 115, 22, 0.1) !important; 
    border: 1px solid rgba(249, 115, 22, 0.4) !important; 
    color: var(--accent) !important; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 40px; 
    text-align: center; 
    font-weight: 600; 
    font-size: 14px; 
    display: block; 
}

/* GRIDS LAYOUT (Formulár naľavo, Zhrnutie napravo) */
.order-container { 
    max-width: 1250px; 
    margin: 0 auto 50px auto; 
    display: grid; 
    grid-template-columns: 1fr 380px; 
    gap: 40px; 
    align-items: start; 
}
.order-section { margin-bottom: 40px; }
.order-section h2 { font-family: 'Oswald', sans-serif; font-size: 20px; color: white; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.order-section h2::before { content: ''; display: block; width: 4px; height: 18px; background: var(--accent); }

.game-sel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.plan-grid, .cycle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* --- ULTIMÁTNA OPRAVA KLIKANIA --- */
/* Skryje rádio gombík fyzicky, ale ponechá ho dostupný pre prehliadač */
.game-sel-card input[type="radio"], 
.plan-card input[type="radio"], 
.cycle-card input[type="radio"] { 
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    pointer-events: none !important;
}

/* Karta samotná je label - dostane kurzor myši a registruje kliknutia */
.game-sel-card, .plan-card, .cycle-card { 
    background: var(--bg-panel); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    overflow: hidden; 
    transition: 0.2s; 
    position: relative; 
    display: block; 
    cursor: pointer !important; 
}

.game-sel-card.active, .plan-card.active, .cycle-card.active { 
    border-color: var(--accent); 
    background: rgba(249, 115, 22, 0.05); 
}
.game-sel-card.active::before, .plan-card.active::before { 
    content: '✓'; position: absolute; top: 10px; right: 10px; background: var(--accent); color: white; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; display: flex; align-items: center; justify-content: center; font-weight: bold; z-index: 10; 
}

/* Zabezpečí, aby texty a obrázky neblokovali kliknutie na kartu */
.game-sel-img, .game-sel-info, .plan-name, .plan-ram, .plan-features, .cycle-days, .cycle-discount {
    pointer-events: none;
}

/* Ostatné vnútorné prvky kariet */
.game-sel-img { height: 100px; background-size: cover; background-position: center; position: relative; border-bottom: 1px solid var(--border); }
.game-sel-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-panel), transparent); }
.game-sel-info { padding: 15px; position: relative; z-index: 2; margin-top: -20px; }
.game-sel-info h3 { font-size: 16px; font-weight: 800; margin-bottom: 2px; color: white; }
.game-sel-info p { font-size: 12px; color: var(--text-muted); margin: 0; }

.plan-card { padding: 20px; text-align: center; }
.plan-name { font-family: 'Oswald', sans-serif; font-size: 18px; text-transform: uppercase; color: white; margin-bottom: 10px; }
.plan-ram { font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 15px; line-height: 1; }
.plan-ram span { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-left: 4px; }
.plan-features { text-align: left; border-top: 1px solid var(--border); padding-top: 15px; margin-top: 15px; }
.plan-features li { font-size: 12px; color: #d4d4d8; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.plan-features li::before { content: '•'; color: var(--accent); }

.cycle-card { padding: 15px; text-align: center; }
.cycle-days { font-size: 20px; font-weight: 800; color: white; margin-bottom: 5px; }
.cycle-discount { font-size: 11px; color: var(--success); font-weight: bold; text-transform: uppercase; margin-top: 5px; }

/* SLIDERY */
.slider-container { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 25px; margin-bottom: 20px; }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.slider-label { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.slider-value { font-size: 24px; font-weight: 800; color: var(--accent); }

input[type=range] { 
    -webkit-appearance: none; 
    width: 100%; 
    background: #27272a; 
    margin: 10px 0; 
    border-radius: 4px; 
    height: 8px; 
    outline: none;
}
input[type=range]::-webkit-slider-thumb { 
    height: 24px; width: 24px; border-radius: 50%; 
    background: var(--accent); cursor: pointer; -webkit-appearance: none; 
    margin-top: -8px; border: 4px solid #121214; 
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5); 
    position: relative; z-index: 10;
}
.slider-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 10px; font-weight: 600; }
.slider-info { font-size: 12px; color: #a1a1aa; margin-top: 15px; border-top: 1px dashed var(--border); padding-top: 15px; }

/* ZHRNUTIE PRAVÝ PANEL */
.summary-wrapper { position: sticky; top: 100px; }
.summary-box { background: #18181b; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.summary-header { background: #121214; padding: 20px; font-family: 'Oswald', sans-serif; font-size: 18px; text-transform: uppercase; border-bottom: 1px solid var(--border); color: white;}
.summary-body { padding: 20px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; }
.sum-lbl { color: var(--text-muted); }
.sum-val { color: white; font-weight: 600; text-align: right; }
.sum-val.accent { color: var(--accent); }
.sum-val.free { color: var(--success); }
.sum-total-box { background: var(--bg-dark); border: 1px solid var(--border); border-radius: 8px; padding: 20px; text-align: center; margin-top: 20px; }
.sum-total-lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
.sum-total-price { font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; }
.btn-submit-disabled { width: 100%; background: #27272a; color: #71717a; border: none; padding: 18px; font-size: 16px; font-weight: 700; font-family: 'Oswald', sans-serif; text-transform: uppercase; cursor: not-allowed; margin-top: 20px; border-radius: 8px; }

@media (max-width: 992px) { 
    .order-container { grid-template-columns: 1fr; } 
    .summary-wrapper { position: static; } 
    .plan-grid, .cycle-grid, .game-sel-grid { grid-template-columns: 1fr; } 
}