/* ===================================
   Clean Payment Page Styles
   =================================== */

.payment-page-wrapper {
    background: #f8f9fa;
    padding: 30px 0 60px;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.payment-page-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.payment-page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
    padding-left: 0;
}

.payment-page-title::after {
    display: none;
}

/* Layout */
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
    align-items: start;
}

/* Left Section - Payment Form */
.payment-form-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
}

.payment-form-section::before {
    display: none;
}

.newsletter-checkbox {
    padding: 20px 25px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.newsletter-checkbox::before {
    display: none;
}

.newsletter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    accent-color: #007bff;
    position: relative;
    z-index: 1;
}

.newsletter-checkbox label {
    font-size: 14px;
    color: #333;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Form Section */
.form-section {
    padding: 25px 30px 30px;
    background: #ffffff;
}

.form-section.payment-method-section {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-left: 0;
}

.section-title::before {
    display: none;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.warning-box::before {
    display: none;
}

.warning-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
    color: #f39c12;
    filter: none;
}

.warning-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #856404;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    position: relative;
}

.form-group label::after {
    display: none;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-shadow: none;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
    transform: none;
    background: #ffffff;
}

.form-control:hover {
    border-color: #999;
    transform: none;
    box-shadow: none;
}

.form-control::placeholder {
    color: #aaa;
    font-style: italic;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234ecdc4' d='M6 8L0 2h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-label {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    box-shadow: none;
    gap: 15px;
}

.payment-option-label:hover {
    border-color: #ccc;
    transform: none;
    box-shadow: none;
}

.payment-option input[type="radio"]:checked + .payment-option-label {
    border-color: #28a745;
    background: #ffffff;
    box-shadow: none;
    transform: none;
}

.payment-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-option-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.payment-option-desc {
    display: block;
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cod-icon {
    background: #28a745;
    color: white;
}

.bank-icon {
    background: #6c757d;
    color: white;
}

.card-icon {
    background: #6c757d;
    color: white;
}

.payment-option input[type="radio"]:checked + .payment-option-label .cod-icon {
    background: #28a745;
}

.payment-option input[type="radio"]:checked + .payment-option-label .bank-icon,
.payment-option input[type="radio"]:checked + .payment-option-label .card-icon {
    background: #6c757d;
}

/* Submit Button */
.btn-submit-payment {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: normal;
}

.btn-submit-payment::before {
    display: none;
}

.btn-submit-payment:hover {
    background: #218838;
    transform: none;
    box-shadow: none;
}

.btn-submit-payment:hover::before {
    display: none;
}

.btn-submit-payment:active {
    background: #1e7e34;
    transform: none;
    box-shadow: none;
}

/* Right Section - Order Summary */
.order-summary-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
    position: sticky;
    top: 20px;
}

.shopping-cart {
    margin-bottom: 20px;
}

.cart-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

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

.item-badge {
    width: 24px;
    height: 24px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    box-shadow: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.item-quantity {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.item-price {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cart-footer {
    font-size: 13px;
    color: #666;
    text-align: center;
    padding: 8px 0;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 10px;
}

/* Coupon Section */
.coupon-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.coupon-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s ease;
    background: white;
}

.coupon-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.coupon-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    box-shadow: none;
}

.coupon-button:hover {
    background: #5a6268;
    transform: none;
    box-shadow: none;
}

/* Cost Summary */
.cost-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid #e5e5e5;
}

.total-row {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    background: #ffffff;
    padding: 12px 15px;
    margin: 10px -15px -15px -15px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e5e5e5;
}

.total-amount {
    color: #333;
    font-size: 18px;
}

.free-shipping {
    color: #28a745;
    font-weight: 500;
}

.tax-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: left;
    font-style: normal;
}

/* Delivery Info */
.delivery-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.delivery-question {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.info-icon {
    font-size: 16px;
    color: #007bff;
}

.delivery-text {
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 992px) {
    .payment-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .order-summary-section {
        position: relative;
        top: 0;
        order: -1;
    }
}

@media (max-width: 768px) {
    .payment-page-wrapper {
        padding: 20px 0 40px;
    }
    
    .payment-page-title {
        font-size: 28px;
    }
    
    .form-section {
        padding: 25px 20px 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .warning-box {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .coupon-input-group {
        flex-direction: column;
    }
    
    .coupon-button {
        width: 100%;
    }
    
    .payment-layout {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .payment-page-wrapper .container {
        padding: 0 15px;
    }
    
    .payment-form-section,
    .order-summary-section {
        border-radius: 15px;
    }
    
    .form-section {
        padding: 20px 15px 25px;
    }
    
    .btn-submit-payment {
        padding: 18px 25px;
        font-size: 16px;
    }
}
