﻿
/* Header */
.site-header {
    background: #1a365d;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

    .main-nav a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        transition: opacity 0.3s;
    }

        .main-nav a:hover {
            opacity: 0.8;
        }

/* Hero Section */
.checkout-hero {
    position: relative;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="70" r="2.5" fill="rgba(255,255,255,0.06)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

    .hero-content h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 1rem;
        letter-spacing: 2px;
    }

.breadcrumb {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

    .breadcrumb a {
        color: #fff;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

/* Main Content */
.checkout-main {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Checkout Header */
.checkout-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

    .checkout-header h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1a365d;
        margin-bottom: 1.5rem;
    }

.report-info {
    text-align: left;
    margin-bottom: 1rem;
}

    .report-info p {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        color: #333;
    }

    .report-info strong {
        color: #1a365d;
    }

.customization-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    text-align: left;
    border-radius: 0 8px 8px 0;
}

    .customization-notice p {
        color: #92400e;
        font-size: 0.875rem;
        line-height: 1.6;
    }

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    transition: all 0.3s;
}

    .step.active {
        background: #1a365d;
        border-color: #1a365d;
    }

        .step.active .step-number,
        .step.active .step-text {
            color: #fff;
        }

    .step.completed {
        border-color: #1a365d;
    }

        .step.completed .step-number {
            background: #1a365d;
            color: #fff;
        }

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
}

.step-text {
    font-weight: 500;
    font-size: 0.875rem;
    color: #333;
}

.step-connector {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
}

/* Checkout Content - Two Column Layout */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Purchase Details */
.purchase-details {
    padding: 2rem 3rem;
    background: #fff;
}

    .purchase-details h3 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #1a365d;
        display: inline-block;
    }

.details-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .form-group label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #4b5563;
    }

.required {
    color: #dc2626;
}

.form-group input,
.form-group select {
    padding: 1rem 1.2rem;
    width: 100%;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
}

    .form-group input:focus,
    .form-group select:focus {
        outline: none;
        border-color: #1a365d;
        box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    }

    .form-group input::placeholder {
        color: #9ca3af;
    }

.form-group select {
    cursor: pointer;
    color: #6b7280;
}

    .form-group select:valid {
        color: #333;
    }

/* License Section */
.license-section {
    padding: 2rem;
    border-left: 1px solid #e5e7eb;
}

    .license-section h3 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 1.5rem;
    }

.license-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.license-option {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border: 2px solid #e0e4ea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
}

    .license-option:hover {
        border-color: #1a365d;
        background: #f0f4fa;
    }

    .license-option.selected {
        border-color: #1a365d;
        background: #eaf0f9;
        box-shadow: 0 2px 8px rgba(26, 54, 93, 0.10);
    }

    .license-option input[type="radio"] {
        width: 15px;
        height: 15px;
        margin-right: 1.25rem;
        accent-color: #1a365d;
        flex-shrink: 0;
    }

.license-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-name {
    font-size: 1rem;
    color: #333;
}

.license-pricing {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
}

.current-price {
    font-size: 20px;
    color: #1a365d;
}

.discount-badge {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
}

.original-price {
    color: #9ca3af;
    font-size: 0.9rem;
    text-decoration: line-through;
}

.delivery-notice {
    text-align: center;
    color: #0891b2;
    font-style: italic;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.proceed-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #1a365d;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

    .proceed-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    }

    .proceed-btn svg {
        stroke: #1a365d;
    }

/* Error Message */
.error-message {
    color: red;
    font-size: 13px;
}

/* Footer */
.site-footer {
    background: #1a365d;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* ============================= */
/* Fully Responsive Breakpoints  */
/* ============================= */

/* Large Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .license-section {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .purchase-details {
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .checkout-hero {
        padding: 3rem 1.5rem;
    }

    .step-indicator {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step-connector {
        width: 2px;
        height: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.9rem 1rem;
        font-size: 14px;
    }

    .license-content {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .license-pricing {
        flex-direction: row;
        align-items: baseline;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .checkout-header,
    .license-section,
    .purchase-details {
        padding: 1.5rem;
    }

        .checkout-header h2 {
            font-size: 1.25rem;
        }

    .checkout-main {
        padding: 1.5rem 1rem;
    }
}

/* Small Mobile (max-width: 640px) */
@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 1.75rem;
        letter-spacing: 1.5px;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .step {
        padding: 0.6rem 1.2rem;
        width: 100%;
        justify-content: center;
    }

    .step-text {
        font-size: 0.8rem;
    }

    .license-option {
        padding: 0.875rem 1rem;
    }

    .current-price {
        font-size: 1.15rem;
    }

    .proceed-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .customization-notice p {
        font-size: 0.8rem;
    }

    .report-info p {
        font-size: 0.875rem;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .checkout-hero {
        padding: 2.5rem 1rem;
    }

    .step {
        padding: 0.5rem 1rem;
    }

    .step-text {
        font-size: 0.75rem;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .current-price {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.8rem 0.9rem;
        font-size: 13.5px;
    }

    .checkout-header,
    .license-section,
    .purchase-details {
        padding: 1.2rem;
    }

    .license-option input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 0.75rem;
    }

    .proceed-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .site-footer {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* Tiny Screens (max-width: 360px) */
@media (max-width: 360px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.25rem;
    }

    .checkout-main {
        padding: 1rem 0.75rem;
    }

    .checkout-header h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .license-name {
        font-size: 0.875rem;
    }

    .current-price {
        font-size: 1rem;
    }

    .original-price {
        font-size: 0.75rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.7rem 0.8rem;
        font-size: 13px;
    }
}
