/* Simple Checkout Form Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.checkout-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Section Styling */
.section {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Checkbox Group */
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.1);
}

/* Terms Text */
.terms-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.terms-text a {
    color: #007cba;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Payment Section */
.payment-methods {
    margin-bottom: 15px;
}

.payment-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.payment-label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background: #f8f9fa;
    gap: 12px;
}

.payment-label:hover {
    background: #f0f1f2;
}

.payment-text {
    flex: 1;
    font-weight: 500;
}

.card-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-icons img {
    width: 30px;
    height: auto;
    opacity: 0.7;
}

.paypal-logo {
    width: 80px !important;
    height: auto;
}

/* Card Form */
.card-form {
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

/* Upsell Section */
.upsell-section {
    background: #f8f9fa;
}

.upsell-box {
    border: 2px dashed #007cba;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.upsell-header {
    padding: 15px;
    background: #f0f8ff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.arrow {
    color: #007cba;
    font-size: 16px;
    margin-top: 2px;
}

.upsell-header label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.4;
}

.upsell-content {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.upsell-image {
    flex-shrink: 0;
}

.strategy-image {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    background: #333;
}

.upsell-details h3 {
    color: #e44d26;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.upsell-details p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555;
}

.benefits-list {
    list-style: none;
    margin-bottom: 20px;
}

.benefits-list li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.original-price {
    font-size: 14px;
    color: #666;
}

.discount-price {
    font-size: 16px;
    font-weight: 700;
    color: #007cba;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-of-type {
    border-bottom: none;
}

.item-icon {
    font-size: 14px;
}

.item-name {
    flex: 1;
    font-weight: 500;
}

.item-price {
    font-weight: 600;
    color: #333;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 18px;
    font-weight: 700;
}

.total-amount {
    color: #007cba;
}

/* Checkout Button */
.checkout-button {
    width: 100%;
    padding: 18px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-button:hover {
    background: #218838;
}

.checkout-button:active {
    transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-container {
        margin: 10px;
        border-radius: 0;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .upsell-content {
        flex-direction: column;
        text-align: center;
    }
    
    .strategy-image {
        width: 100px;
        height: 130px;
        margin: 0 auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Hide card form when PayPal is selected */
input[name="payment_method"][value="paypal"]:checked ~ .payment-methods .card-form {
    display: none;
}

/* Animation for upsell item */
.upsell-item {
    transition: all 0.3s ease;
}

/* Loading state */
.checkout-button.loading {
    background: #6c757d;
    cursor: not-allowed;
}

.checkout-button.loading:after {
    content: " ⏳";
}