/* ===== CHECKOUT PAGE STYLES ===== */

/* Checkout Hero */
.checkout-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem 0 3rem;
}

.checkout-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step.active .step-number {
    background: white;
    color: var(--primary-color);
}

.step.completed .step-number {
    background: var(--success-color);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Checkout Section */
.checkout-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

/* Checkout Grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* Checkout Form */
.checkout-form-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Delivery Methods */
.delivery-methods,
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-method,
.payment-method {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-method:hover,
.payment-method:hover {
    border-color: var(--primary-light);
    background: var(--bg-light);
}

.delivery-method input[type="radio"],
.payment-method input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.delivery-method input[type="radio"]:checked,
.payment-method input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: inset 0 0 0 3px white;
}

.delivery-method:has(input:checked),
.payment-method:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.method-content {
    flex: 1;
}

.method-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.method-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.method-price {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Submit Button */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* Order Summary */
.order-summary-container {
    position: sticky;
    top: 100px;
}

.order-summary {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.order-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.order-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.order-item-quantity {
    font-size: 0.75rem;
    color: var(--text-light);
}

.order-item-price {
    font-weight: 700;
    color: var(--text-dark);
}

.order-summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.order-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.total-final {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-top: 1rem;
}

.order-info {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe5a1 100%);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-info p {
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .order-summary-container {
        position: static;
    }
}

@media (max-width: 640px) {
    .checkout-hero h1 {
        font-size: 2rem;
    }

    .checkout-steps {
        gap: 1rem;
    }

    .step-label {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-form-container,
    .order-summary {
        padding: 1.5rem;
    }

    .delivery-method,
    .payment-method {
        padding: 1rem;
    }

    .method-title {
        font-size: 0.9rem;
    }

    .method-description {
        font-size: 0.8rem;
    }
}
