/* Checkout Specific Styles */
.checkout-container {
    max-width: 1100px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.checkout-step {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #e5e5e5;
    margin-bottom: 2rem;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.checkout-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1d1d1f;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 400px;
    margin: 0 auto 3rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e5e5e5;
    z-index: 1;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-weight: 600;
    font-size: 0.9rem;
    color: #86868b;
    transition: all 0.3s;
}

.step.active {
    border-color: #0066cc;
    background: #0066cc;
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.error-msg {
    color: #ff3b30;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

/* Delivery Options */
.delivery-option {
    border: 2px solid #e5e5e5;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: #0066cc;
}

.delivery-option.selected {
    border-color: #0066cc;
    background: #f0f7ff;
}

.option-title {
    font-weight: 600;
    color: #1d1d1f;
}

.option-desc {
    font-size: 0.85rem;
    color: #86868b;
    margin-top: 0.2rem;
}

.option-price {
    font-weight: 700;
    color: #1d1d1f;
}

/* Payment */
.payment-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1rem;
}

.payment-tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    color: #86868b;
    border-radius: 8px;
    transition: all 0.2s;
}

.payment-tab.active {
    background: #f5f5f7;
    color: #1d1d1f;
    font-weight: 600;
}

.payment-content {
    display: none;
}

.payment-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.card-icons {
    display: flex;
    gap: 1rem;
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

/* Order Summary */
.order-summary-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #e5e5e5;
    position: sticky;
    top: 100px;
}

.order-summary-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.summary-totals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #515154;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1d1d1f;
    margin-top: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    width: 100%;
}

.btn-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        order: -1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}