 
:root {
    /* Enhanced Color Palette */
    --color-primary: #19406c;
    --color-primary-light: #2a5a8a;
    --color-primary-dark: #0f2a4a;
    --color-sub: #1aa9c6;
    --color-sub-light: #2bc8e8;
    --color-sub-dark: #0f8ba3;
    --color-light: #f8fafc;
    --color-light-secondary: #f1f5f9;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-error: #ef4444;
    --color-error-light: #f87171;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;

    /* Enhanced Surfaces */
    --color-surface: #ffffff;
    --color-surface-secondary: #f8fafc;
    --color-surface-tertiary: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-border-strong: #cbd5e1;
    --color-border-focus: #1aa9c6;

    /* Enhanced Shadows & Elevation */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Enhanced Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Enhanced Spacing Scale */
    --space-0: 0px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-9: 36px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Enhanced Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--color-surface-secondary) 0%, var(--color-surface-tertiary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-6);
    color: var(--color-text);
}

.container {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    max-width: 1400px;
    width: 100%;
    border: 1px solid var(--color-border);
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: var(--space-6);
    align-self: flex-start;
}

.section-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-border);
}

.header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.header h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-sub) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--leading-tight);
}

.header p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.product-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 169, 198, 0.1), transparent);
    transition: left var(--transition-slow);
}

.product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    left: 100%;
}

.product-card.selected {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary-subtle) 0%, var(--color-sub-subtle) 100%);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.product-card.selected::after {
    content: '✓';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.product-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
}

.product-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
    line-height: var(--leading-normal);
    font-size: var(--text-sm);
}

.product-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    line-height: var(--leading-tight);
}

.customer-form {
    padding: var(--space-6);
    background: var(--color-surface-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: none;
}

.gateway-form {
    /* padding: 5px;
    background: var(--color-surface-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm); */
    display: none;
}
.gateway-form iframe {
    width: 100%;
    min-height: 800px;
    border: none;
    border-radius: var(--radius-md);
    transition: height var(--transition-normal);
    overflow: hidden;
}

.payment-method-selector {
    padding: var(--space-6);
    background: var(--color-surface-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: none;
}

.payment-method-selector h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    text-align: center;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.payment-method-option {
    position: relative;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-method-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 120px;
    box-shadow: var(--shadow-sm);
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(25, 64, 108, 0.05) 0%, rgba(26, 169, 198, 0.05) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.payment-method-label:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-method-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
    color: var(--color-primary);
}

.payment-method-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    text-align: center;
}

.payment-method-option input[type="radio"]:checked + .payment-method-label .payment-method-icon {
    color: var(--color-sub);
}

.customer-form h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    text-align: center;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: var(--font-family);
    transition: var(--transition-normal);
    background: var(--color-surface);
    color: var(--color-text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 169, 198, 0.15);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.pay-button {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-sub) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: var(--space-4);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.pay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.pay-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-sub-dark) 100%);
}

.pay-button:hover:not(:disabled)::before {
    left: 100%;
}

.pay-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pay-button i {
    font-size: var(--text-xl);
}

.loading {
    display: none;
    text-align: center;
    margin-top: var(--space-6);
    padding: var(--space-8);
    background: var(--color-surface-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.spinner {
    border: 3px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
}

.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--color-error);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
    display: none;
    border: 1px solid var(--color-error-light);
    box-shadow: var(--shadow-sm);
    font-weight: var(--font-medium);
}

.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: var(--color-success);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
    display: none;
    border: 1px solid var(--color-success-light);
    box-shadow: var(--shadow-sm);
    font-weight: var(--font-medium);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .right-column {
        position: static;
    }

    .gateway-form iframe {
        min-height: 800px;
    }
}

@media (max-width: 768px) {
    body {
        padding: var(--space-4);
        align-items: center;
    }

    .container {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        max-width: 100%;
    }

    .main-layout {
        gap: var(--space-4);
    }

    .header h1 {
        font-size: var(--text-xl);
    }

    .header p {
        font-size: var(--text-xs);
    }

    .section-title {
        font-size: var(--text-lg);
    }

    .product-card {
        padding: var(--space-4);
    }

    .product-name {
        font-size: var(--text-base);
    }

    .product-price {
        font-size: var(--text-lg);
    }

    .customer-form {
        padding: var(--space-4);
    }

    .customer-form h3 {
        font-size: var(--text-base);
    }

    .payment-method-selector {
        padding: var(--space-4);
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .pay-button {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
        min-height: 40px;
    }

    .gateway-form iframe {
        min-height: 850px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-3);
    }

    .header h1 {
        font-size: var(--text-lg);
    }

    .product-card {
        padding: var(--space-3);
    }

    .customer-form {
        padding: var(--space-3);
    }

    .payment-method-selector {
        padding: var(--space-3);
    }

    .gateway-form iframe {
        min-height: 800px;
    }
}
 