/* ===============================
   NindoTV Checkout – Brand Matched
   Clean • Modern • Premium
=============================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page background */
body {
    background: radial-gradient(circle at top, #102A4C, #0A1A2E 70%);
    font-family: 'Inter', system-ui, sans-serif;
    color: #111;
    padding: 0;
    overflow-x: hidden;
}

/* Main Checkout Wrapper */
.checkout-container {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    margin: 32px auto;
    padding: 36px 32px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.06);
    animation: fadeUp .35s ease-out;
}

/* Fade animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Title */
.checkout-title {
    font-size: 28px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
}

/* Orange underline */
.checkout-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: #FF7A00;
    border-radius: 99px;
    margin-top: 8px;
}

/* Subtitle */
.checkout-subtitle {
    font-size: 15px;
    color: #475569;
    margin-bottom: 30px;
}

/* Form fields */
.field-group {
    margin-bottom: 22px;
}

label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #334155;
}

/* Inputs */
input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    background: #F9FAFB;
    font-size: 15px;
    transition: all .15s ease;
}

input::placeholder {
    color: #9CA3AF;
}

/* Focus */
input:focus,
select:focus {
    border-color: #FF7A00;
    box-shadow: 0 0 0 2px rgba(255,122,0,0.18);
    background: #ffffff;
    outline: none;
}

/* Extra fields */
.extra-field {
    margin-top: 10px;
    display: none;
}

/* Player extra row */
.player-extra-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.player-extra-row .field-group {
    flex: 1 1 160px;
}

/* Hint text */
.hint {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}

/* =========================
   Primary Button – ORANGE
========================= */

.btn-primary {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #FF7A00, #FF9A1F);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(255,122,0,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255,122,0,0.45);
    opacity: 0.97;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(255,122,0,0.30);
}

/* =========================
   Ghost Button – Orange
========================= */

.btn-ghost {
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed #FF7A00;
    background: rgba(255,122,0,0.05);
    border-radius: 12px;
    cursor: pointer;
    margin-top: 12px;
    color: #FF7A00;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255,122,0,0.12);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Phones */
@media (max-width: 480px) {
    .checkout-container {
        width: 92%;
        margin: 20px auto;
        padding: 26px 18px;
        border-radius: 16px;
        box-shadow: 0 14px 35px rgba(0,0,0,0.26);
    }

    .checkout-title {
        font-size: 22px;
    }
}

/* Medium Phones + Small Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .checkout-container {
        width: 85%;
        margin: 26px auto;
        padding: 32px 26px;
        border-radius: 20px;
    }

    .checkout-title {
        font-size: 24px;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 991px) {
    .checkout-container {
        width: 72%;
        max-width: 700px;
        margin: 30px auto;
        padding: 38px 30px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .checkout-container {
        margin-top: 44px;
    }
}

/* =========================
   Button Loading State
========================= */

.btn-primary {
    position: relative;
    overflow: hidden;
}

/* Loader */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
    margin: auto;
}

/* Loading active */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .btn-loader {
    display: block;
}

/* Disabled */
.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

