/* Checkout Styles */

/* Header */
.checkout-header {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header .logo img {
    height: 40px;
}

.checkout-steps {
    display: flex;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    width: 1rem;
    height: 1px;
    background-color: #e5e7eb;
}

.step.active {
    color: #1e3a8a;
    font-weight: 600;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f3f4f6;
    font-size: 0.875rem;
}

.step.active .step-number {
    background-color: #1e3a8a;
    color: white;
}

/* Checkout Section */
.checkout-section {
    padding: 3rem 0;
    background-color: #f8fafc;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
}

/* Cart */
.checkout-cart {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-cart h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-size: 1.5rem;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background-color: #f3f4f6;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1e3a8a;
    font-weight: 600;
}

.cart-item-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1e3a8a;
}

.cart-item-details p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

.cart-summary {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.summary-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
}

/* Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 2rem;
}

.checkout-summary {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-summary h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.payment-options {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.payment-options h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.payment-option input[type="radio"] {
    margin-top: 0.25rem;
}

.monthly-details {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f3f4f6;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #4b5563;
}

.monthly-details p {
    margin: 0;
}

#proceed-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.trust-badges {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.trust-badge:last-child {
    margin-bottom: 0;
}

.trust-badge i {
    color: #2563eb;
    font-size: 1.25rem;
}

.trust-badge img {
    height: 1.25rem;
    width: auto;
}

/* Escrow iframe */
.escrow-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.escrow-container h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-size: 1.5rem;
}

.escrow-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Confirmation Page */
.confirmation-message {
    text-align: center;
    padding: 3rem 0;
}

.confirmation-message h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.confirmation-message p {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.order-details {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.order-details h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.order-row.highlight {
    font-weight: 600;
    color: #1e3a8a;
}

/* PayPal Fallback */
.paypal-container {
    margin-top: 2rem;
    text-align: center;
}

.paypal-container p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.paypal-button {
    background-color: #0070ba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.paypal-button:hover {
    background-color: #005ea6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .checkout-steps {
        gap: 1rem;
    }

    .step:not(:last-child)::after {
        right: -0.75rem;
        width: 0.5rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-price {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 0.5rem;
    }
}

/* ============================================
   Enhanced Payment Options (LTO)
   ============================================ */

.payment-option {
    display: block;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-option:hover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.payment-option:has(input:checked) {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.payment-option input[type="radio"] {
    position: absolute;
    right: 1rem;
    top: 1.25rem;
    accent-color: #3b82f6;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    padding-right: 2rem;
}

.option-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
}

.option-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    background-color: #e5e7eb;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.option-badge.popular {
    background-color: #059669;
    color: white;
}

.option-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.option-price {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.option-price strong {
    font-size: 1.5rem;
    color: #1e3a8a;
}

.option-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-benefits li {
    padding: 0.4rem 0;
    color: #4b5563;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-benefits li i {
    color: #10b981;
    font-size: 0.75rem;
}

.lto-note {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #fef3c7;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #92400e;
}

.lto-note i {
    margin-right: 0.25rem;
}

/* LTO option highlight */
.lto-option:has(input:checked) {
    border-color: #059669;
    background-color: #ecfdf5;
}

/* Show details when selected */
.payment-option:has(input:checked) .option-details {
    display: block;
}

/* Proceed button enhancement */
#proceed-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: none;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

#proceed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

/* Mobile adjustments for payment options */
@media (max-width: 768px) {
    .payment-option {
        padding: 0.75rem;
    }

    .option-price strong {
        font-size: 1.25rem;
    }

    .option-benefits li {
        font-size: 0.85rem;
    }
}
