/* 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-header > div {
    color: #fda4af;
    font-size: 16px;
    font-weight: 500;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    align-items: center;
    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;
    }
    
    .shipping-details {
        flex: 3;
    }
    
    .order-summary {
        flex: 2;
    }
}

.shipping-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,
.field 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;
}

/* Address Options */
.address-options {
    margin-bottom: 30px;
}

.address-option {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: rgba(225, 29, 72, 0.03);
    border: 2px solid rgba(225, 29, 72, 0.15);
    border-radius: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.address-option:hover {
    border-color: rgba(225, 29, 72, 0.3);
    background: rgba(225, 29, 72, 0.06);
    transform: translateX(4px);
}

.address-option.selected {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.address-radio {
    margin-right: 16px;
    margin-top: 3px;
    accent-color: #fbbf24;
    width: 20px;
    height: 20px;
}

.address-details {
    flex: 1;
}

.address-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.address-details p {
    color: #fce7f3;
    margin: 4px 0;
    line-height: 1.7;
    font-size: 15px;
}

/* Address Header with Icons */
.address-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.address-icon svg {
    width: 22px;
    height: 22px;
}

.address-icon.label-home {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    color: #60a5fa;
}

.address-icon.label-office {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.1));
    color: #a78bfa;
}

.address-icon.label-other {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
    color: #4ade80;
}

.address-header h3 {
    margin: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.address-label-tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-option .address-label-tag {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
}

/* Add New Address Button */
.add-new-address {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.add-new-address:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.add-new-address svg {
    margin-right: 10px;
}

/* Delivery Options */
.delivery-options {
    margin-bottom: 30px;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    background: rgba(225, 29, 72, 0.03);
    border: 2px solid rgba(225, 29, 72, 0.15);
    border-radius: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.delivery-option:hover {
    border-color: rgba(225, 29, 72, 0.3);
    background: rgba(225, 29, 72, 0.06);
    transform: translateX(4px);
}

.delivery-option.selected {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.delivery-radio {
    margin-right: 16px;
    margin-top: 3px;
    accent-color: #fbbf24;
    width: 20px;
    height: 20px;
}

.delivery-details {
    flex: 1;
}

.delivery-details h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.delivery-details p {
    color: #fce7f3;
    margin: 4px 0;
    font-size: 15px;
}

.delivery-price {
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.delivery-time {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.15), rgba(159, 18, 57, 0.1));
    border-radius: 8px;
    font-size: 14px;
    color: #fda4af;
    font-weight: 600;
}

/* Order Summary Card */
.order-summary-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.15), rgba(159, 18, 57, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(190, 18, 60, 0.2);
    position: sticky;
    top: 20px;
}

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

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

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

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

.item-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 16px;
    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);
}

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

.item-info {
    flex: 1;
}

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

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

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

.summary-divider {
    height: 2px;
    background: linear-gradient(to right, rgba(225, 29, 72, 0.2), transparent);
    margin: 20px 0;
}

/* Totals */
.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
}

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

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

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

.grand-total-label {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grand-total-value {
    font-weight: 800;
    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);
}

/* Checkout Button */
.checkout-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);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    font-size: 14px;
    color: #fda4af;
    gap: 8px;
}

.secure-checkout svg {
    color: #10b981;
}

.back-to-cart {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: #fda4af;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 15px;
}

.back-to-cart:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

/* Select Dropdowns */
.district-select,
.state-select,
.country-select {
    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;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fda4af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    transition: all 0.3s;
}

.district-select option,
.state-select option,
.country-select option {
    background: #881337;
    color: #ffffff;
}

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

/* Save for Later Checkbox */
.save-for-later {
    display: flex;
    align-items: center;
    margin-top: 24px;
    cursor: pointer;
}

.save-for-later input[type="checkbox"] {
    margin-right: 12px;
    accent-color: #fbbf24;
    width: 20px;
    height: 20px;
}

.save-for-later label {
    color: #fda4af !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    text-transform: none !important;
}

/* Error Styles */
.field.has-error .form-control,
.form-group.has-error .form-control,
.field.has-error .country-select,
.field.has-error .state-select,
.field.has-error .district-select,
.form-group.has-error .country-select,
.form-group.has-error .state-select,
.form-group.has-error .district-select,
.has-error .form-control,
.has-error select {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

.field.has-error .form-control:focus,
.form-group.has-error .form-control:focus,
.field.has-error .country-select:focus,
.field.has-error .state-select:focus,
.field.has-error .district-select:focus,
.form-group.has-error .country-select:focus,
.form-group.has-error .state-select:focus,
.form-group.has-error .district-select:focus,
.has-error .form-control:focus,
.has-error select:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.help-block,
.invalid-feedback,
.has-error .help-block,
.field.has-error .help-block,
.form-group.has-error .help-block {
    display: block !important;
    color: #fca5a5;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
}

.field.has-error label,
.form-group.has-error label {
    color: #fca5a5 !important;
}

/* Special Instructions Textarea */
.special-instructions textarea {
    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;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    color: #ffffff;
    transition: all 0.3s;
}

.special-instructions textarea::placeholder {
    color: rgba(253, 164, 175, 0.6);
}

.special-instructions textarea: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);
}

/* 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;
    }
    
    .form-col {
        min-width: 100%;
    }
}