/* =============================================
   UNICTEST — TEST SERIES PASS PAGE (Testbook-Style)
   Clean radio-select plan cards, no big boxes
   ============================================= */

/* --- Page Container --- */
.pass-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* --- Hero Section (Left-aligned sidebar style) --- */
.pass-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.pass-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.pass-hero-content {
    position: relative;
    z-index: 1;
}

.pass-hero h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.pass-hero h1 span {
    color: #fbbf24;
}

.pass-hero p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

/* Features strip inside hero */
.pass-hero-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pass-hero-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e0e7ff;
}

.pass-hero-feature i {
    color: #fbbf24;
    font-size: 0.8rem;
}

/* =============================================
   PLAN SELECTION — Testbook-Style Radio Cards
   ============================================= */
.plans-section {
    margin-bottom: 1.5rem;
}

/* =============================================
   2-COLUMN LAYOUT: Plans Left + Features Right
   ============================================= */
.plans-features-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.plans-col {
    flex: 1;
    min-width: 0;
}

.features-col {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

.features-panel {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
}

.features-panel-header {
    background: rgba(255,255,255,0.08);
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c7d2fe;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.features-panel-header i {
    color: #fbbf24;
    font-size: 1rem;
}

.features-panel-list {
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0;
}

.features-panel-list li {
    padding: 0.55rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e0e7ff;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.features-panel-list li:last-child {
    border-bottom: none;
}

.features-panel-list li i {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .plans-features-row {
        flex-direction: column;
        gap: 1rem;
    }

    .features-col {
        width: 100%;
        position: static;
    }

    .features-panel {
        border-radius: 12px;
    }
}

.plans-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plans-section-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual plan card — radio select style */
.plan-radio-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Content row (radio + info + price) */
.plan-content-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
}

.plan-radio-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.08);
}

.plan-radio-card.selected {
    border-color: #4f46e5;
    background: #f5f3ff;
    box-shadow: 0 2px 16px rgba(79, 70, 229, 0.12);
}

/* Radio circle */
.plan-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.plan-radio-card.selected .plan-radio {
    border-color: #4f46e5;
    background: #4f46e5;
}

.plan-radio-card.selected .plan-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* Plan info (name + validity) */
.plan-info {
    flex: 1;
    min-width: 0;
}

.plan-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.plan-info .plan-validity {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

/* Price section (right side) */
.plan-price-area {
    text-align: right;
    flex-shrink: 0;
}

.plan-original-price {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.plan-final-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.plan-radio-card.selected .plan-final-price {
    color: #4f46e5;
}

/* Recommended badge */
.plan-recommended-badge {
    position: absolute;
    top: -1px;
    right: 12px;
    background: #10b981;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sale timer bar on plan card */
.plan-timer-bar {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px 10px 0 0;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
}

.plan-timer-bar .timer-icon {
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.plan-timer-digits {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.plan-timer-digits .digit-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.plan-timer-digits .digit-sep {
    font-size: 0.65rem;
    opacity: 0.8;
}

.plan-timer-bar.expired {
    background: #6b7280;
}

/* =============================================
   SUMMARY / TO PAY SECTION
   ============================================= */
.pay-summary {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.pay-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pay-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
}

.pay-summary-row .label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.pay-summary-row .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.pay-summary-row.total .label {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.pay-summary-row.total .value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #4f46e5;
}

.pay-summary-row .discount-value {
    color: #10b981;
    font-weight: 700;
}

/* Get Pass Button */
.btn-get-pass {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    margin-bottom: 1.5rem;
}

.btn-get-pass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    color: #fff;
}

.btn-get-pass:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* =============================================
   COUPON SECTION
   ============================================= */
.coupon-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.coupon-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.coupon-card .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.coupon-card .form-control {
    border: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 14px;
}

.coupon-card .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.coupon-card .btn {
    font-weight: 700;
    padding: 10px 20px;
}

#coupon-applied-display {
    border-radius: 10px;
}

/* =============================================
   FEATURES GRID (Why unictest Pass?)
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-box {
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 1.8rem;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.feature-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
    margin-bottom: 2rem;
}

.faq-section h2 {
    font-size: 1.15rem;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    color: #1e293b;
}

.accordion-button:not(.collapsed) {
    background: #f5f3ff;
    color: #4f46e5;
    box-shadow: none;
}

.accordion-body {
    font-size: 0.85rem;
    color: #475569;
    padding: 0.75rem 1rem 1rem;
}

/* =============================================
   MOBILE RESPONSIVE — Full-width cards
   ============================================= */
@media (max-width: 767px) {
    .pass-page-container {
        padding: 0.75rem 0.5rem;
    }

    .pass-hero {
        padding: 1.5rem 1.2rem;
        border-radius: 10px;
    }

    .pass-hero h1 {
        font-size: 1.3rem;
    }

    .pass-hero p {
        font-size: 0.82rem;
    }

    .pass-hero-features {
        gap: 0.35rem;
    }

    .pass-hero-feature {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    /* Plan cards — full width on mobile */
    .plans-section {
        margin-bottom: 1rem;
    }

    .plan-radio-card {
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .plan-content-row {
        padding: 0.85rem 0.75rem;
        gap: 0.65rem;
    }

    .plan-timer-bar {
        font-size: 0.58rem;
        padding: 5px 8px;
        gap: 4px;
    }

    .plan-timer-digits .digit-box {
        padding: 1px 4px;
        font-size: 0.62rem;
        min-width: 20px;
    }

    .plan-timer-digits .digit-sep {
        font-size: 0.55rem;
    }

    .plan-info h5 {
        font-size: 0.88rem;
    }

    .plan-final-price {
        font-size: 1.25rem;
    }

    /* Summary + button full width */
    .pay-summary {
        margin: 0 0 0.75rem 0;
    }

    .btn-get-pass {
        border-radius: 10px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Coupon card full width */
    .coupon-card {
        border-radius: 10px;
        padding: 1rem;
    }

    /* Features grid 2-column */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .feature-box {
        padding: 1rem 0.75rem;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 0.82rem;
    }

    .feature-desc {
        font-size: 0.72rem;
    }
}
