/* Checkout Page Specific Styles - Brand Aligned */

/* Light theme background - matches main site */
body {
    background: linear-gradient(180deg, var(--bg-body-start) 0%, var(--bg-body-end) 100%);
    color: var(--text-dark);
    position: relative;
}

/* Aurora Background Effect */
body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(204, 243, 129, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 25% 85%, rgba(255, 230, 0, 0.15) 0%, transparent 50%);
    z-index: 0;
    filter: blur(60px);
    pointer-events: none;
}

/* Minimal Checkout Header */
.checkout-header {
    padding: 20px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.checkout-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 20px;
}

.checkout-main {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.checkout-sidebar {
    position: sticky;
    top: 120px;
}

/* Order Summary Card - Light Theme */
.order-summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    box-shadow: var(--card-shadow);
}

.order-summary-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.summary-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.summary-plan-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.summary-plan-price {
    font-weight: 600;
    color: var(--dark-green);
}

.summary-features {
    list-style: none;
    margin-bottom: 24px;
}

.summary-features li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-features li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 12px;
    border: solid var(--dark-green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-right: 8px;
    margin-bottom: 2px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
}

/* Review Card Styles - Light Theme */
.review-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.edit-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.edit-btn:hover {
    color: var(--dark-green);
}

.review-data {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.review-data:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
        order: -1;
        /* Show summary at top on mobile */
    }
}


/* Stepper - Brand Colors */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    cursor: default;
}

.step-circle {
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 15px;
}

.step-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--dark-green);
    border-color: var(--dark-green);
    color: white;
    box-shadow: 0 4px 16px rgba(15, 28, 21, 0.25);
}

.step.active .step-label {
    color: var(--dark-green);
    font-weight: 600;
}

.step.completed .step-circle {
    background: var(--accent-lime);
    border-color: var(--accent-lime);
    color: var(--dark-green);
}

.step.completed .step-label {
    color: var(--dark-green);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 16px;
    position: relative;
    top: -14px;
    z-index: 1;
}

.step-line.active {
    background: var(--accent-lime);
}

/* Checkout Form Container - Light Theme */
.checkout-container {
    max-width: 100%;
    margin: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    box-shadow: var(--card-shadow);
}

/* Form Sections (Accordion Style) */
.form-section {
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    transition: all 0.3s ease;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    text-align: left;
    margin-bottom: 0;
}

.form-section.active .section-header {
    opacity: 1;
    margin-bottom: 24px;
}

.form-section .section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-content {
    display: none;
    animation: slideDown 0.4s ease;
}

.form-section.active .section-content {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

/* Form Elements - Light Theme */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(15, 28, 21, 0.08);
}

/* Domain Input Group */
.domain-input {
    display: flex;
    gap: 12px;
}

.domain-input input {
    flex: 3;
}

.domain-input select {
    flex: 1;
}

/* Review Section */
.order-summary {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item.total {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-top: 16px;
    font-weight: 700;
    font-size: 20px;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* Buttons - Brand Colors */
.continue-btn,
.confirm-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.continue-btn {
    background: var(--dark-green);
    color: white;
}

.continue-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 28, 21, 0.25);
}

.confirm-btn {
    background: var(--accent-lime);
    color: var(--dark-green);
}

.confirm-btn:hover {
    background: var(--accent-lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 243, 129, 0.4);
}

/* Logo styling for checkout */
.checkout-left .logo,
.checkout-nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 20px;
}

/* Urgency Countdown Timer */
.urgency-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--dark-green);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(15, 28, 21, 0.2);
}

.urgency-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-green);
    flex-shrink: 0;
}

.urgency-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.urgency-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 48px;
}

.countdown-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-lime);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.countdown-separator {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-lime);
    margin: 0 2px;
}

/* ========== MOBILE CHECKOUT STYLES ========== */

@media (max-width: 768px) {
    .checkout-main {
        padding: 20px 0 100px;
        /* Extra bottom padding for sticky bar */
    }

    .checkout-layout {
        gap: 20px;
    }

    /* Hide desktop sidebar on mobile */
    .checkout-sidebar {
        display: none;
    }

    /* Compact Stepper */
    .stepper {
        margin-bottom: 40px;
        gap: 0;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-label {
        display: none !important;
    }

    .step-line {
        margin: 0 8px;
        top: 0;
    }

    /* Compact Urgency Banner */
    .urgency-banner {
        flex-direction: row;
        justify-content: center;
        padding: 12px 16px;
        gap: 12px;
        margin-bottom: 20px;
    }

    .urgency-icon {
        width: 36px;
        height: 36px;
    }

    .urgency-icon svg {
        width: 16px;
        height: 16px;
    }

    .urgency-text {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .urgency-label {
        font-size: 11px;
    }

    .countdown-unit {
        padding: 4px 8px;
        min-width: 36px;
    }

    .countdown-number {
        font-size: 16px;
    }

    .countdown-label {
        font-size: 8px;
    }

    .countdown-separator {
        font-size: 14px;
    }

    /* Checkout Container */
    .checkout-container {
        padding: 20px;
        border-radius: 16px;
    }

    .form-section .section-header h2 {
        font-size: 18px;
    }

    .section-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* Touch-Friendly Inputs */
    .form-group input,
    .form-group select {
        padding: 16px;
        font-size: 16px;
        /* Prevents iOS zoom */
        min-height: 52px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* Domain Input */
    .domain-input {
        flex-direction: column;
        gap: 10px;
    }

    .domain-input input,
    .domain-input select {
        flex: 1;
    }

    /* Buttons */
    .continue-btn,
    .confirm-btn {
        padding: 18px;
        font-size: 15px;
        border-radius: 12px;
    }

    /* Review Cards */
    .review-card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .review-header h3 {
        font-size: 14px;
    }

    .review-data {
        font-size: 13px;
    }
}

/* Mobile Sticky Order Summary Bar */
.mobile-order-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-order-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--dark-green);
        padding: 12px 20px;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-order-info {
        display: flex;
        flex-direction: column;
    }

    .mobile-order-plan {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
    }

    .mobile-order-price {
        font-size: 18px;
        font-weight: 800;
        color: var(--accent-lime);
    }

    .mobile-order-btn {
        background: var(--accent-lime);
        color: var(--dark-green);
        padding: 12px 24px;
        border-radius: 10px;
        font-family: 'Outfit', sans-serif;
        font-size: 14px;
        font-weight: 700;
        border: none;
        cursor: pointer;
    }

    .mobile-order-expand {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        font-size: 12px;
        padding: 0;
        margin-top: 2px;
        cursor: pointer;
        text-decoration: underline;
    }
}

/* Extra Small Screens */
@media (max-width: 400px) {
    .checkout-container {
        padding: 16px;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .urgency-banner {
        padding: 10px 12px;
    }

    .countdown-unit {
        padding: 3px 6px;
        min-width: 32px;
    }

    .countdown-number {
        font-size: 14px;
    }

    .form-section {
        padding: 16px 0;
    }

    .form-section .section-header h2 {
        font-size: 16px;
    }
}