/* Modern Checkout Styles */

.checkout-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Simplified Navigation for Checkout */
.nav-wrapper-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.checkout-wrapper {
    width: 100%;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr 450px;
        gap: 3rem;
    }
}

/* Left Column - Form Section */
.checkout-form-section {
    order: 2;
}

@media (min-width: 1024px) {
    .checkout-form-section {
        order: 1;
    }
}

.checkout-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.form-section {
    margin-bottom: 2.5rem;
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.optional-text {
    color: var(--text-light);
    font-weight: 400;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(28, 130, 173, 0.1);
}

.form-input.invalid,
.form-select.invalid {
    border-color: #ef4444;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.error {
    display: block;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* Payment Methods Banner */
.payment-methods-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-methods-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0369a1;
    font-weight: 600;
    font-size: 0.875rem;
}

.payment-icon {
    color: #0369a1;
}

.payment-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-logo {
    height: 25px;
    width: auto;
}

.payment-methods-image {
    height: 35px;
    width: auto;
    max-width: 100%;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, #1C82AD 0%, #0B5E7D 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(28, 130, 173, 0.3);
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(28, 130, 173, 0.4);
}

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

.submit-icon {
    width: 20px;
    height: 20px;
}

/* Terms Text */
.terms-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    line-height: 1.6;
}

.terms-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Right Column - Summary Section */
.checkout-summary-section {
    order: 1;
}

@media (min-width: 1024px) {
    .checkout-summary-section {
        order: 2;
    }
}

.summary-sticky {
    position: relative;
}

@media (min-width: 1024px) {
    .summary-sticky {
        position: sticky;
        top: 2rem;
    }
}

/* Order Summary Card */
.summary-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-details {
    padding-bottom: 1.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.product-price {
    font-size: 1rem;
    color: var(--text-light);
}

/* Features List */
.features-list {
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-check {
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* Summary Total */
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
}

.total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: 'Poppins', sans-serif;
}

/* Trust & Security Card */
.trust-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.1);
    margin-bottom: 1.5rem;
}

.trust-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.trust-icon-badge {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1C82AD 0%, #0B5E7D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -5px rgba(28, 130, 173, 0.4);
}

.trust-lock-icon {
    color: var(--white);
}

.trust-content {
    flex: 1;
}

.trust-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.trust-title svg {
    color: #1C82AD;
}

.trust-description {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

/* Security Badges */
.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #bfdbfe;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.security-badge svg {
    color: #6b7280;
}

.badge-divider {
    width: 1px;
    height: 1rem;
    background: #d1d5db;
}

/* Guarantee Badge */
.guarantee-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

.guarantee-badge svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Checkout Footer */
.checkout-footer {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-dark);
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .checkout-container {
        padding: 1rem;
    }

    .checkout-title {
        font-size: 1.75rem;
    }

    .summary-card {
        padding: 1.5rem;
    }

    .trust-card {
        padding: 1.25rem;
    }
}

@media (max-width: 639px) {
    .checkout-title {
        font-size: 1.5rem;
    }

    .section-heading {
        font-size: 1.125rem;
    }

    .payment-methods-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-title {
        font-size: 1.25rem;
    }

    .total-amount {
        font-size: 1.25rem;
    }
}

/* Loading State for Submit Button */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn:disabled:hover {
    transform: none;
}
