.checkout-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.checkout-container h1 {
    color: #0d0033;
    margin-bottom: 30px;
    font-size: 2rem;
}

.checkout-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Order Summary */
.order-summary {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-items {
    margin-bottom: 20px;
}

.order-total {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.subtotal,
.shipping,
.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.total {
    font-weight: bold;
    color: #0d0033;
    border-top: 2px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* Shipping Information */
.shipping-info {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #0d0033;
}

/* Payment Section */
.payment-section {
    margin-top: 40px;
}

#paypal-button-container {
    max-width: 500px;
    margin: 20px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-container {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    input,
    select {
        font-size: 16px; /* Prevents zoom on mobile */
    }
}

/* Cart Items in Checkout */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #0d0033;
    font-weight: bold;
}

.cart-item-quantity {
    color: #666;
    font-size: 0.9rem;
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h1 {
    font-size: 2rem;
    color: #0d0033;
    margin-bottom: 20px;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 20px;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.step.active .step-number {
    background-color: #4834d4;
    color: white;
}

.step-text {
    color: #666;
    font-size: 0.9rem;
}

.step.active .step-text {
    color: #4834d4;
    font-weight: 500;
}

/* Checkout Content Layout */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Form Styles */
.checkout-form {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.checkout-form h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4834d4;
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #4834d4;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #3c2aa8;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e9e9e9;
}

/* Payment Methods */
.payment-methods {
    margin-top: 20px;
}

.payment-method-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.payment-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.payment-tab i {
    margin-right: 8px;
}

.payment-tab.active {
    color: #4834d4;
    border-bottom-color: #4834d4;
}

.payment-section {
    display: none;
}

.payment-section.active {
    display: block;
}

/* Card Payment Styles */
.card-input-container {
    position: relative;
}

.card-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
}

.card-icons i {
    font-size: 1.2rem;
    color: #666;
}

/* PayPal Styles */
.paypal-info {
    text-align: center;
    padding: 20px;
}

.paypal-info p {
    margin-bottom: 20px;
    color: #666;
}

.paypal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0070ba;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.paypal-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.paypal-button:hover {
    background-color: #005ea6;
}

/* Order Summary */
.order-summary {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.order-summary h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.summary-item-price {
    color: #666;
    font-size: 0.9rem;
}

.summary-item-quantity {
    color: #666;
    font-size: 0.9rem;
}

.summary-totals {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #666;
}

.summary-row.total {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
}

.promo-code {
    display: flex;
    margin-top: 20px;
}

.promo-code input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.promo-code button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-left: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.promo-code button:hover {
    background-color: #e9e9e9;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step {
        margin: 10px 0;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Animation for form transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-form {
    animation: fadeIn 0.3s ease-out;
} 