/* ==========================================
   CHECKOUT PAGE CSS
   ========================================== */

.checkout-page {
    position: relative;
    min-height: 100vh;
    background-color: #0b0f19;
    padding: 40px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Centered Ambient Glow */
.checkout-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.checkout-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
}

/* Header */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.logo { color: #fff; font-size: 24px; margin: 0; }
.text-cyan { color: #22d3ee; }
.secure-badge { color: #10b981; font-size: 12px; font-weight: bold; margin-left: 260px; background:  rgba(16, 185, 129, 0.1); padding: 5px 12px; border-radius: 20px; }

/* Grid Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

/* Glass Panels */
.glass-panel {
    background: #141a24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-panel h3 { color: #fff; margin-bottom: 25px; font-size: 20px; }

/* Left Column: Summary */
.summary-item-card {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}
.item-icon { font-size: 30px; }
.item-details h4 { color: #fff; margin: 0 0 5px 0; font-size: 16px; }
.item-details p { color: #9ca3af; margin: 0; font-size: 13px; }

.price-breakdown { border-top: 1px dashed rgba(255, 255, 255, 0.1); border-bottom: 1px dashed rgba(255, 255, 255, 0.1); padding: 20px 0; margin-bottom: 20px; }
.price-row { display: flex; justify-content: space-between; color: #d1d5db; margin-bottom: 12px; font-size: 15px; }
.strike-through { text-decoration: line-through; color: #6b7280; }
.total-row { font-size: 20px; font-weight: bold; color: #fff; margin-top: 20px; margin-bottom: 0; }

.trust-seals span { display: block; color: #9ca3af; font-size: 13px; margin-bottom: 8px; }

/* Right Column: Form */
.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.method-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.method-option input { display: none; }
.method-option.active { border-color: #22d3ee; color: #22d3ee; background: rgba(34, 211, 238, 0.05); }

/* Form Inputs */
.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: #9ca3af; font-size: 13px; margin-bottom: 8px; }
.input-group input {
    width: 100%;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}
.input-group input:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.input-row { display: flex; gap: 15px; }
.input-group.half { flex: 1; }

.btn-pay-now {
    width: 100%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}
.btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
}

.terms-text { text-align: center; justify-content: center; justify-items: center; color: #6b7280; font-size: 15px; margin-top: 30px; margin-left: 150px; }

/* Mobile Responsiveness */
@media (max-width: 800px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-header { flex-direction: column; gap: 15px; text-align: center; }
}


/* ==========================================
   MODERN CHECKOUT CSS
   ========================================== */

/* Tabs Styling */
.payment-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: #141a24;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(34, 211, 238, 0.3); /* Cyan subtle glow */
}

/* Sections visibility */
.pay-method-section {
    display: none; /* Hide all by default */
    animation: fadeIn 0.4s ease forwards;
}
.pay-method-section.active {
    display: block; /* Show only active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UPI Apps Grid */
.method-desc { color: #9ca3af; font-size: 14px; margin-bottom: 20px; text-align: center; }

.upi-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.upi-app-btn {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upi-app-btn:hover {
    border-color: #22d3ee;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.15);
}

.app-logo { height: 24px; object-fit: contain; filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }
.app-logo.gpay-logo { height: 28px; }
.app-logo.upi-logo { height: 20px; }

/* Divider OR */
.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}
.divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}
.divider span {
    position: relative;
    z-index: 2;
    background: #141a24;
    padding: 0 15px;
    color: #6b7280;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* UPI Input Wrapper */
.upi-input-wrapper {
    display: flex;
    gap: 10px;
}
.upi-input { flex: 1; }
.btn-verify {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-verify:hover { background: #22d3ee; color: #0b0f19; }

/* Card Input Extras */
.card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.card-icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
}
.card-input-wrapper input {
    padding-left: 45px; /* Leave space for icon */
}
.secure-card-badges {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
}

.secure-footer-text { text-align: center; color: #6b7280; font-size: 12px; margin-top: 20px; }




/* ==========================================
   CHECKOUT ORDER SUMMARY CSS
   ========================================== */

.summary-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

/* Checkout Preview Box Adjustment */
.checkout-preview {
    height: 140px; /* Course page se thoda chhota rakha hai taki checkout me fit ho */
    margin-bottom: 15px;
    border-width: 1.5px; /* Border thodi patli ki hai */
}

.checkout-preview .play-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

.preview-text-small {
    font-size: 13px;
    font-weight: 600;
}

/* Course Info Below Thumbnail */
.checkout-course-info {
    text-align: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-course-info h4 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 5px 0;
}

.checkout-course-info p {
    color: #9ca3af;
    font-size: 13px;
    margin: 0;
}

/* Trust Seals Update */
.trust-seals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.trust-seals span {
    color: #9ca3af;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}



/* ==========================================
   ORDER SUMMARY & THUMBNAIL CSS
   ========================================== */

.summary-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

/* 1. The Container (Acts as a cage for the image) */
.checkout-preview {
    position: relative;
    width: 100%;
    height: 190px; /* Fixed height so it doesn't stretch */
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden; /* CRITICAL: Clips the image if it tries to expand */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0b0f19;
    margin-bottom: 20px;
}

/* 2. The Image inside the container */
.checkout-preview .bg-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the box without stretching */
    opacity: 0.4; /* Darkens the image so text is readable */
    z-index: 1;
    transition: transform 0.4s ease;
}

/* Subtle zoom effect on hover */
.checkout-preview:hover .bg-thumbnail {
    transform: scale(1.08);
}

/* 3. The Play Button & Text Overlay */
.checkout-preview .play-overlay {
    position: relative;
    z-index: 2; /* Keeps text above the image */
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.checkout-preview .play-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    padding-left: 3px;
}

.preview-text-small {
    font-size: 14px;
    font-weight: 600;
}

/* 4. Course Information Below Thumbnail */
.checkout-course-info {
    text-align: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-course-info h4 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 5px 0;
}

.checkout-course-info p {
    color: #9ca3af;
    font-size: 13px;
    margin: 0;
}

/* Trust Seals */
.trust-seals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.trust-seals span {
    color: #9ca3af;
    font-size: 13px;
}


/* ==========================================
   TRUST SEALS SVG STYLING
   ========================================== */

.trust-seals span {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #9ca3af !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

/* Base style for both SVGs */
.seal-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0; /* Prevents the icon from squishing if text wraps */
    margin-top: 9px;
}

/* Specific colors for the icons */
.seal-icon.shield {
    color: #3b82f6; /* Modern crisp blue */
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.4)); /* Slight blue glow */
}

.seal-icon.thunder {
    color: #f59e0b; /* Vibrant electric orange/gold */
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4)); /* Slight orange glow */
}



/* ==========================================
   COUPON CODE STYLING
   ========================================== */

.coupon-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1); /* Subtle dashed line at the bottom */
}

/* Input box for entering the coupon */
.coupon-input {
    flex: 1; /* Takes up all the remaining available space */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    text-transform: uppercase; /* Forces the code to always appear in UPPERCASE */
}

.coupon-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: none; /* Keeps the placeholder text normal (not uppercase) */
}

.coupon-input:focus {
    border-color: #22d3ee; /* Cyan border glows when the user is typing */
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

/* Apply button design */
.btn-apply {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background: #22d3ee; /* Button background turns Cyan on hover */
    color: #0b0f19; /* Text turns dark on hover for better contrast */
    border-color: #22d3ee;
}