/* SOA Checkout Styles */
.soa-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.soa-checkout-container h2,
.soa-checkout-container h3 {
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Product Section */
.soa-products-section {
    margin-bottom: 30px;
}

.soa-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.soa-product-image {
    flex-shrink: 0;
    margin-right: 20px;
}

.soa-product-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.soa-product-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.soa-product-price {
    font-weight: bold;
    font-size: 18px;
    color: #003366;
    min-width: 80px;
}

.soa-product-name {
    font-size: 16px;
}

.soa-product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.soa-qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #003366;
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.soa-qty-btn:hover {
    background: #002244;
}

.soa-qty-input {
    width: 60px;
    text-align: center;
    font-size: 16px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.soa-custom-fields {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
}

.soa-custom-field-group {
    margin-bottom: 10px;
}

.soa-custom-field-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.soa-custom-field-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Donation Section */
.soa-donation-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
}

.soa-donation-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.soa-currency {
    font-size: 24px;
    font-weight: bold;
    color: #003366;
}

#soa-donation-amount {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    font-size: 18px;
    border: 2px solid #003366;
    border-radius: 5px;
}

/* Summary Section */
.soa-summary-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 2px solid #003366;
    border-radius: 8px;
}

.soa-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
}

.soa-total-row {
    border-top: 2px solid #003366;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: bold;
    font-size: 20px;
    color: #003366;
}

/* Form Sections */
.soa-customer-info-section,
.soa-payment-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.soa-form-row {
    margin-bottom: 15px;
}

.soa-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.soa-form-row-third {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

.soa-form-group {
    display: flex;
    flex-direction: column;
}

.soa-form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.soa-form-group input,
.soa-form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.soa-form-group input:focus,
.soa-form-group select:focus {
    outline: none;
    border-color: #003366;
}

.required {
    color: #d32f2f;
}

/* Payment Methods */
.soa-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.soa-payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.soa-payment-method:hover {
    border-color: #003366;
}

.soa-payment-method input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.soa-payment-method input[type="radio"]:checked + span {
    font-weight: bold;
    color: #003366;
}

.soa-check-instructions {
    padding: 15px;
    background: #fffacd;
    border-left: 4px solid #ffd700;
    border-radius: 4px;
}

/* Submit Section */
.soa-submit-section {
    text-align: center;
    margin-top: 30px;
}

.soa-submit-btn {
    background: #003366;
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.soa-submit-btn:hover {
    background: #002244;
}

.soa-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#soa-loading {
    margin-top: 15px;
    font-size: 16px;
    color: #003366;
}

.soa-error-message {
    margin-top: 15px;
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    border-radius: 4px;
}

.soa-success-message {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .soa-product-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .soa-product-image {
        margin-right: 0;
        text-align: center;
    }
    
    .soa-product-image img {
        width: 350px;
        height: 350px;
    }
    
    .soa-product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .soa-product-quantity {
        justify-content: center;
    }
    
    .soa-form-row-half,
    .soa-form-row-third {
        grid-template-columns: 1fr;
    }
    
    .soa-summary-section {
        padding: 15px;
    }
    
    .soa-submit-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .soa-checkout-container {
        padding: 10px;
    }
    
    .soa-product-image img {
        width: 250px;
        height: 250px;
    }
    
    .soa-product-price {
        font-size: 16px;
    }
    
    .soa-product-name {
        font-size: 14px;
    }
    
    .soa-qty-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .soa-qty-input {
        width: 50px;
    }
}

/* Print Styles for Check Form */
@media print {
    body * {
        visibility: hidden;
    }
    
    #soa-check-form-modal,
    #soa-check-form-modal * {
        visibility: visible;
    }
    
    #soa-check-form-modal {
        position: absolute;
        left: 0;
        top: 0;
    }
}