:root {
    --primary-color: #635bff;
    --bg-light: #f6f9fc;
    --bg-white: #ffffff;
    --text-main: #32325d;
    --text-secondary: #6b7c93;
    --border-color: #e6ebf1;
    --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Header */
.checkout-header {
    background: #fff;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #eee;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

.logo-wrapper { display: flex; flex-direction: column; }
.checkout-logo { height: 24px; width: auto; }
.sub-logo {
    font-size: 8px;
    font-weight: 800;
    color: #444;
    margin-left: 58px;
    margin-top: -3px;
    letter-spacing: 0.05em;
}

/* Layout */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 0.85rem;
    color: #666;
}

.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-stars { height: 40px; } /* Prominent size */
.trust-logo-img { height: 40px; } /* Prominent size */

/* Cards */
.step-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.step-header {
    background: #fcfcfc;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #eee;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 15px;
}

.step-card.active .step-number { background: #333; color: #fff; }

.step-header h2 { font-size: 1.15rem; font-weight: 600; flex: 1; }
.order-id { color: #aaa; font-size: 0.9rem; }

.step-content { padding: 2rem; }

/* Payment Specific */
.card-logos { display: flex; gap: 8px; align-items: center; }
.card-logos img { 
    height: 18px !important; 
    width: auto !important; 
    max-width: 40px !important;
    object-fit: contain;
}

.payment-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tab-btn {
    flex: 0 1 auto;
    padding: 0.4rem 1rem;
    height: 34px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
}
.tab-btn.active { border: 1.5px solid #333; }
.tab-icon { width: 16px; height: auto; }

/* Form Fields */
.form-row { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }

input, select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
input:focus { border-color: #333; }

.input-wrapper { position: relative; }
.secure-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #bbb; }

/* Sidebar */
.order-summary-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.sidebar-header h2 { font-size: 1.3rem; font-weight: 600; }

.product-item { border-bottom: 1px solid #f0f0f0; padding-bottom: 2rem; margin-bottom: 2rem; }
.product-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.current-price { font-size: 1.2rem; font-weight: 700; color: #28a745; }
.original-price { text-decoration: line-through; color: #999; font-size: 0.9rem; }

.savings-banner {
    background: #e6f4ea;
    color: #1e7e34;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2.5rem; }
.total-row .price { font-size: 1.6rem; font-weight: 700; color: #28a745; }

.place-order-btn {
    width: 100%;
    padding: 1.25rem;
    background: #9d8fff;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(157, 143, 255, 0.3);
    transition: all 0.3s ease;
}

.place-order-btn:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}

/* Login Page Specific Styles */
.login-header {
    background: #fff;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #eee;
}

.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 2rem;
    background: #f4f4f4; /* Subtle gray background per image */
}

.login-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.login-card h2 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    color: #333;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.login-card input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
}

.login-card input::placeholder {
    color: #ccc;
}

.password-wrapper {
    position: relative;
}

.login-card .toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-sign-in {
    width: 100%;
    padding: 0.85rem;
    background: #999; /* Locked gray by default */
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: not-allowed;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn-sign-in.active {
    background: rgb(34, 123, 255);
    cursor: pointer;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
    font-size: 0.85rem;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.separator span {
    padding: 0 1rem;
}

.btn-google {
    width: 100%;
    padding: 0.75rem;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin-bottom: 1rem;
}

.btn-trouble {
    width: 100%;
    padding: 0.75rem;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin-bottom: 2rem;
}

.login-footer {
    font-size: 0.85rem;
    color: #666;
}

.login-footer a {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
}

/* Secured Footer Component */
.secured-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
}

.secured-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.secured-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.secured-icon-svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4caf50;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

@media (max-width: 992px) { .checkout-layout { grid-template-columns: 1fr; } }
/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-sidebar {
        order: -1; /* Show order summary on top for mobile */
    }
    
    .trust-indicators {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .trust-item {
        width: 100%;
        justify-content: center;
    }

    .page-title {
        font-size: 1.8rem;
        text-align: center;
        justify-content: center;
    }

    .checkout-container {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .step-header {
        padding: 1rem;
    }
    
    .step-content {
        padding: 1rem;
    }
}
