/* Checkout Header */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(225, 29, 72, 0.2);
}

.checkout-header h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 32px;
    background: linear-gradient(135deg, #ffffff, #fda4af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.1), rgba(159, 18, 57, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.step {
    display: flex;
    align-items: center;
    margin: 0 15px;
    color: #fda4af;
    font-weight: 500;
    transition: all 0.3s;
}

.step.active {
    color: #fbbf24;
    font-weight: 700;
    transform: scale(1.05);
}

.step.completed {
    color: #10b981;
    font-weight: 600;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(225, 29, 72, 0.1);
    border: 2px solid rgba(225, 29, 72, 0.3);
    border-radius: 50%;
    margin-right: 10px;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: transparent;
    color: #7f1d1d;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: white;
}

.step-name {
    color: inherit;
}

.step-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, rgba(225, 29, 72, 0.2), rgba(225, 29, 72, 0.1));
    margin: 0 10px;
}

/* Checkout Container */
.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .checkout-container {
        flex-direction: row;
    }
    
    .payment-details {
        flex: 3;
    }
    
    .order-summary {
        flex: 2;
    }
}

.payment-details {
    width: 100%;
}

.order-summary {
    width: 100%;
}

/* Checkout Card */
.checkout-card {
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.1), rgba(159, 18, 57, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(190, 18, 60, 0.15);
    transition: all 0.3s;
}

.checkout-card:hover {
    box-shadow: 0 12px 40px rgba(190, 18, 60, 0.2);
}

.checkout-card h2 {
    color: #ffffff;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(225, 29, 72, 0.2);
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fda4af;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(225, 29, 72, 0.05);
    border: 2px solid rgba(225, 29, 72, 0.2);
    border-radius: 10px;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s;
}

.form-control::placeholder {
    color: rgba(253, 164, 175, 0.6);
}

.form-control:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(225, 29, 72, 0.08);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}

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

.form-col {
    flex: 1;
    min-width: 200px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-width: 160px;
    padding: 16px 20px;
    background: rgba(225, 29, 72, 0.03);
    border: 2px solid rgba(225, 29, 72, 0.15);
    border-radius: 12px;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: rgba(225, 29, 72, 0.3);
    background: rgba(225, 29, 72, 0.06);
    transform: translateY(-2px);
}

.payment-option input[type="radio"] {
    accent-color: #fbbf24;
    width: 20px;
    height: 20px;
}

.payment-option input[type="radio"]:checked + label {
    color: #fbbf24;
    font-weight: 700;
}

.payment-option label {
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    font-size: 16px;
}

/* Razorpay Container */
.razorpay-container {
    margin-top: 24px;
}

#razorpayPaymentForm {
    display: block;
}

.razorpay-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.08), rgba(159, 18, 57, 0.04));
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 12px;
}

.razorpay-info p {
    color: #fce7f3;
    font-size: 16px;
    margin-top: 16px;
}

.razorpay-logo {
    margin-bottom: 20px;
    width: 150px;
    height: 50px;
    background: linear-gradient(135deg, #2b63d9, #1e4fc7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.razorpay-methods {
    margin-top: 24px;
    width: 100%;
}

.razorpay-methods p {
    color: #fda4af;
    font-weight: 600;
    margin-bottom: 16px;
}

.razorpay-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.razorpay-options span {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #fbbf24;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* COD Info */
.cod-info {
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.08), rgba(159, 18, 57, 0.04));
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}

.cod-info p {
    color: #fce7f3;
    font-size: 16px;
}

.cod-fee-notice {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
}

.cod-fee-notice strong {
    color: #fbbf24;
}

/* Order Items */
.order-items {
    margin-bottom: 24px;
}

.order-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(225, 29, 72, 0.1);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.05), rgba(159, 18, 57, 0.02));
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 16px;
}

.order-item-price {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.order-item-quantity {
    color: #fda4af;
    font-size: 14px;
}

/* Order Summary Details */
.order-summary-details {
    margin-top: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 8px 0;
}

.summary-label {
    color: #fda4af;
    font-size: 16px;
}

.summary-value {
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid rgba(225, 29, 72, 0.3);
    font-size: 24px;
    font-weight: 800;
}

.summary-total > div:first-child {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-total > div:last-child {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Payment Buttons */
.payment-btn,
.razorpay-payment-button,
.phonepe-btn,
.cod-btn {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #7f1d1d;
    border: none;
    padding: 18px;
    margin-top: 28px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.payment-btn:hover,
.razorpay-payment-button:hover,
.phonepe-btn:hover,
.cod-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #7f1d1d;
}

.phonepe-btn {
    display: none;
    background: linear-gradient(135deg, #5f259f, #4a1d7f);
    color: #ffffff;
}

.phonepe-btn:hover {
    background: linear-gradient(135deg, #4a1d7f, #3a156f);
    box-shadow: 0 8px 24px rgba(95, 37, 159, 0.4);
    color: #ffffff;
}

/* Billing Checkbox */
.billing-same-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    cursor: pointer;
}

.billing-same-checkbox input {
    margin-right: 12px;
    accent-color: #fbbf24;
    width: 20px;
    height: 20px;
}

.billing-same-checkbox span {
    color: #fda4af;
    font-weight: 500;
    font-size: 16px;
}

/* Checkout Footer */
.checkout-footer {
    margin-top: 48px;
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.05), rgba(159, 18, 57, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(225, 29, 72, 0.1);
}

.checkout-footer p {
    color: #fda4af;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.security-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.security-icon {
    width: 60px;
    height: 40px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s;
}

.security-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Card Icons (if needed) */
.card-icons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.card-icon {
    width: 50px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.1), rgba(159, 18, 57, 0.05));
    border: 1px solid rgba(225, 29, 72, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s;
}

.card-icon.active {
    opacity: 1;
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .checkout-header h1 {
        font-size: 24px;
    }
    
    .checkout-steps {
        padding: 12px;
    }
    
    .step {
        margin: 0 8px;
        font-size: 14px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .checkout-card {
        padding: 20px;
    }
    
    .payment-option {
        min-width: 100%;
    }
    
    .form-col {
        min-width: 100%;
    }
}