/* Checkout Page Styles */

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.secure-badge i {
    font-size: 1rem;
}

.checkout-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.checkout-header p {
    color: #666;
    font-size: 1.1rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

.order-summary h2 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary h2 i {
    color: #00B894;
}

.order-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.item-image {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.item-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.item-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ingredient-tag {
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #555;
    border: 1px solid #e0e0e0;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00B894;
}

/* Promo Code */
.promo-code {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.promo-code input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.btn-apply {
    padding: 12px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-apply:hover {
    background: #555;
}

/* Order Totals */
.order-totals {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #555;
}

.total-row.grand-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #e0e0e0;
}

.total-row.daily-cost {
    font-size: 0.9rem;
    color: #888;
}

.free-shipping {
    color: #00B894;
    font-weight: 600;
}

.discount {
    color: #e74c3c;
}

/* Subscription Info */
.subscription-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.subscription-info i {
    font-size: 1.5rem;
    color: #1976d2;
}

.subscription-info strong {
    display: block;
    color: #333;
    margin-bottom: 3px;
}

.subscription-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Payment Form */
.payment-form {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.payment-form h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 25px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-form h2:first-of-type {
    margin-top: 0;
}

.payment-form h2 i {
    color: #00B894;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00B894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
    color: #555;
}

.payment-option input:checked + .payment-label {
    border-color: #00B894;
    background: rgba(0, 184, 148, 0.05);
    color: #00B894;
}

.payment-label i {
    font-size: 1.3rem;
}

/* Card Input */
.card-input {
    position: relative;
}

.card-input input {
    padding-right: 120px;
}

.card-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    color: #999;
    font-size: 1.5rem;
}

/* Terms Checkbox */
.terms-checkbox {
    margin: 25px 0;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #00B894;
}

.terms-checkbox a {
    color: #00B894;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00B894 0%, #00a085 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.btn-checkout:active {
    transform: translateY(0);
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.security-badges .badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.85rem;
}

.security-badges .badge i {
    color: #00B894;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 5rem;
    color: #00B894;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.order-number {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.confirmation-email {
    font-size: 0.9rem;
    color: #888;
}

.modal-content .btn-primary {
    margin-top: 20px;
    padding: 15px 40px;
}

/* Checkout Footer */
.checkout-footer {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 60px;
}

.footer-links-inline {
    display: flex;
    gap: 20px;
}

.footer-links-inline a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links-inline a:hover {
    color: #00B894;
}

/* Responsive Design */
@media (max-width: 992px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-container {
        padding: 80px 15px 40px;
    }
    
    .checkout-header h1 {
        font-size: 1.8rem;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .security-badges {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .item-image {
        margin: 0 auto;
    }
    
    .item-price {
        margin-top: 10px;
    }
    
    .card-icons {
        display: none;
    }
    
    .card-input input {
        padding-right: 16px;
    }
}
