:root {
    --primary-color: #fafafa6b;
    --secondary-color: #F5E6BE;
    --accent-color: #0018a0;
}

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

body {
    background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #0b090e, #1f1f1f);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
}

/* Animation keyframes */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes flow {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes float-around {
    0% { transform: translate(0, 0); }
    33% { transform: translate(100px, 100px); }
    66% { transform: translate(-50px, 150px); }
    100% { transform: translate(0, 0); }
}

/* Layout & Container styles */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-header {
    text-align: center;
    padding: 3rem 0 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.checkout-header h1 {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #6B7FD7, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: shine 3s linear infinite;
}

.delivery-boy {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: bounce 2s ease-in-out infinite;
}

/* Cart Items Styles */
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: center;
}

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

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-details h3 {
    font-size: 1.1rem;
    margin: 0;
}

.item-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.item-total {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Form Styles */
.shipping-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1a;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
}

/* Payment Styles */
.payment-options {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(26, 26, 26, 0.5);
    color: #fff;
}

/* Button Styles */
.checkout-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: linear-gradient(45deg, #6B7FD7, #8B9FE7);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Benefits Section */
.customer-benefits {
    margin: 2rem auto;
    padding: 1rem 0;
    max-width: 1200px;
}

.benefits-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding: 0 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1;
}

/* Price Details Styles */
.price-details {
    background: rgba(17, 17, 17, 0.95);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
}

.price-details h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.price-breakdown {
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    padding-top: 15px;
    font-weight: 600;
    font-size: 18px;
}

.payment-section {
    margin-top: 25px;
}

.payment-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.payment-option {
    background: rgba(30, 35, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Hover animation effect */
.payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.5s ease;
}

.payment-option:hover::before {
    left: 100%;
}

.payment-option input[type="radio"]:checked + span {
    color: #fff;
}

.payment-option input[type="radio"]:checked {
    border-color: #fff;
}

.payment-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: radioScale 0.2s ease;
}

@keyframes radioScale {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.payment-option span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: #fff;
}

.proceed-btn {
    width: 100%;
    background: linear-gradient(90deg, #4776E6, #8E54E9, #4776E6);
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    animation: gradient 3s linear infinite;
}

/* Define the gradient animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shine effect on hover */
.proceed-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.proceed-btn:hover::after {
    opacity: 1;
    left: 100%;
}

/* Hover state */
.proceed-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.3);
}

/* Active state */
.proceed-btn:active {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .checkout-header h1 {
        font-size: 3rem;
        letter-spacing: 6px;
    }
    
    .delivery-boy {
        width: 80px;
        height: 80px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .benefits-container {
        flex-direction: column;
    }

    .price-details {
        padding: 15px;
    }

    .price-details h2 {
        font-size: 20px;
    }

    .price-row {
        font-size: 14px;
    }

    .price-row.total {
        font-size: 16px;
    }

    .payment-option {
        padding: 10px 14px;
    }
    
    .payment-option input[type="radio"] {
        width: 18px;
        height: 18px;
    }
    
    .payment-option input[type="radio"]:checked::after {
        width: 8px;
        height: 8px;
    }
    
    .proceed-btn {
        padding: 14px;
        font-size: 13px;
    }
} 

/* Add ripple effect styles */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple 0.3s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
} 

/* Add these styles to your CSS */
.pincode-status {
    font-size: 12px;
    margin-top: 4px;
    display: block;
    transition: all 0.3s ease;
}

.pincode-status.error {
    color: #ff4444;
}

.pincode-status.success {
    color: #00C851;
}

/* Style for readonly inputs */
input[readonly] {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

/* Add loading animation */
@keyframes loading {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.pincode-status:contains("Fetching") {
    animation: loading 1.5s infinite;
    color: #fff;
}

/* Add these styles to your existing checkout.css */
.cart-items-container {
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: center;
}

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

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-details h3 {
    font-size: 1.1rem;
    margin: 0;
}

.item-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.item-total {
    font-weight: bold;
    font-size: 1.1rem;
}