:root {
    --primary-color: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3385FF;
    --secondary-color: #00D4FF;
    --success-color: #00C9A7;
    --danger-color: #FF4757;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E0E0E0;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Urgency Bar */
.urgency-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.urgency-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.urgency-icon {
    font-size: 1.3rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.urgency-text {
    font-weight: 600;
}

#urgency-countdown {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.urgency-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Main Container */
.checkout-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Order Summary (Left Side) */
.order-summary {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.logo-section {
    margin-bottom: 2rem;
}

.logo-section a {
    text-decoration: none;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.logo-section a:hover {
    color: var(--primary-color);
}

.logo-section h1 {
    font-size: 1rem;
}

.product-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px dashed var(--border-color);
}

.product-image {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-specs {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.feature-tag {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
}

/* Price Breakdown */
.price-breakdown {
    margin-bottom: 2rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.discount-row {
    color: var(--danger-color);
}

.discount-value {
    font-weight: 700;
}

.free-shipping {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.price-divider {
    height: 2px;
    background: var(--border-color);
    margin: 1rem 0;
}

.total-row {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.final-price {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.badge-icon {
    font-size: 2rem;
}

.badge-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.badge-text small {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Stock Alert */
.stock-alert {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    padding: 1.2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.stock-progress {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stock-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger-color) 0%, var(--primary-color) 100%);
    border-radius: 10px;
    animation: pulse-width 2s ease-in-out infinite;
}

@keyframes pulse-width {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stock-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: center;
}

.stock-text strong {
    color: var(--danger-color);
}

/* Checkout Form (Right Side) */
.checkout-form {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-color);
}

.section-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

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

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Payment Section */
.payment-section {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.05) 0%, rgba(0, 184, 148, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 201, 167, 0.2);
}

.payment-method {
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.payment-method.selected {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.1);
}

.payment-icon {
    font-size: 3rem;
    color: var(--success-color);
}

.payment-details {
    flex: 1;
}

.payment-details strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.payment-details p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.payment-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.security-icon {
    font-size: 1.5rem;
}

/* Form Actions */
.form-actions {
    margin-top: 2.5rem;
    text-align: center;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--success-color) 0%, #00B894 100%);
    color: white;
    border: none;
    padding: 1.3rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 201, 167, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.8rem;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(5px);
}

.terms-text {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Purchase Notification */
.purchase-notification {
    position: fixed;
    top: 100px;
    left: 20px;
    background: white;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--success-color);
    display: none;
    align-items: center;
    gap: 0.8rem;
    max-width: 280px;
    animation: slideInRight 0.5s ease;
    z-index: 999;
}

@keyframes slideInRight {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.purchase-notification.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .order-summary,
    .checkout-form {
        padding: 1.5rem;
    }

    .product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-image {
        width: 150px;
        height: 150px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }

    .urgency-content {
        font-size: 0.8rem;
    }

    .urgency-badge {
        width: 100%;
        text-align: center;
    }

    .final-price {
        font-size: 1.5rem;
    }

    .purchase-notification {
        top: 90px;
        left: 10px;
        right: auto;
        max-width: 240px;
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .urgency-bar {
        padding: 0.6rem 0.8rem;
    }

    .order-summary,
    .checkout-form {
        padding: 1.2rem;
        border-radius: 15px;
    }
    
    .purchase-notification {
        top: 80px;
        left: 10px;
        max-width: 220px;
        padding: 0.35rem 0.5rem;
        border-radius: 6px;
        font-size: 0.8rem;
        border-left-width: 2px;
    }

    .form-section h3 {
        font-size: 1rem;
    }

    .section-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .payment-method {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   CHECKOUT PROGRESS BAR PREMIUM
   ===================================================== */

.checkout-progress-bar {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.progress-steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.step-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.step-number,
.step-check {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-check {
    display: none;
}

.step-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    position: relative;
    margin: 0 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.6s ease;
}

/* Active State */
.progress-step.active .step-circle {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.progress-step.active .step-circle::before {
    transform: scale(1);
}

.progress-step.active .step-number,
.progress-step.active .step-check {
    color: white;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

/* Completed State */
.progress-step.completed .step-circle {
    background: var(--success-color);
}

.progress-step.completed .step-number {
    display: none;
}

.progress-step.completed .step-check {
    display: block;
    color: white;
}

.progress-step.completed .step-label {
    color: var(--success-color);
}

.progress-step.completed ~ .progress-line .progress-line-fill {
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .checkout-progress-bar {
        padding: 1rem 0;
    }
    
    .progress-steps {
        padding: 0 1rem;
    }
    
    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .progress-line {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .progress-line {
        height: 3px;
        margin: 0 0.3rem;
    }
}

/* Animations */
@keyframes step-activate {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.progress-step.active .step-circle {
    animation: step-activate 0.5s ease;
}

