/* ===== CHECKOUT SYSTEM ===== */
/* Fully integrated with Hookups Uganda branding */

:root {
    --primary: #ff6b35;
    --primary-dark: #f56928;
    --primary-light: #fff1ec;
    --secondary: #2d3748;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --border-radius-sm: 6px;
    --border-radius: 10px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --transition: all 0.2s ease;
}

/* Light mode overrides */
body.light-mode {
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Dark mode (default) */
body {
    background: var(--gray-900);
    color: var(--gray-100);
    font-family: 'Inter', sans-serif;
}

body.light-mode {
    background: var(--gray-50);
    color: var(--gray-900);
}

/* ===== CHECKOUT LAYOUT ===== */
.checkout-page {
    padding: 40px 0 60px;
    min-height: 60vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== CHECKOUT HEADER ===== */
.checkout-header {
    margin-bottom: 40px;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: var(--gray-800);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-700);
}

body.light-mode .checkout-steps {
    background: var(--white);
    border-color: var(--gray-200);
}

.step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-700);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

body.light-mode .step {
    background: var(--gray-100);
}

.step.active {
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid var(--primary);
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-600);
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-300);
}

body.light-mode .step-number {
    background: var(--gray-300);
    color: var(--gray-700);
}

.step.active .step-number {
    background: var(--primary);
    color: white;
}

.step-info {
    flex: 1;
}

.step-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.step-subtitle {
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== CHECKOUT GRID ===== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CHECKOUT SECTIONS ===== */
.checkout-section {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

body.light-mode .checkout-section {
    background: var(--white);
    border-color: var(--gray-200);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.section-title i {
    color: var(--primary);
    font-size: 20px;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
}

body.light-mode label {
    color: var(--gray-700);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-600);
    border-radius: var(--border-radius);
    background: var(--gray-700);
    color: var(--gray-100);
    font-size: 15px;
    transition: var(--transition);
}

body.light-mode input[type="text"],
body.light-mode input[type="email"],
body.light-mode input[type="tel"],
body.light-mode input[type="number"],
body.light-mode select,
body.light-mode textarea {
    background: var(--white);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

input::placeholder {
    color: var(--gray-500);
}

body.light-mode input::placeholder {
    color: var(--gray-400);
}

/* Error state */
input.error,
select.error {
    border-color: var(--danger);
}

input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ===== RADIO & CHECKBOX ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--gray-700);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-800);
}

body.light-mode .radio-item,
body.light-mode .checkbox-item {
    background: var(--white);
    border-color: var(--gray-200);
}

.radio-item:hover,
.checkbox-item:hover {
    background: var(--gray-700);
    border-color: var(--primary);
}

body.light-mode .radio-item:hover,
body.light-mode .checkbox-item:hover {
    background: var(--gray-50);
}

.radio-item.selected {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary);
}

input[type="radio"],
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
}

/* ===== CART TABLE ===== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    border-bottom: 1px solid var(--gray-700);
}

body.light-mode .cart-table th {
    color: var(--gray-500);
    border-bottom-color: var(--gray-200);
}

.cart-table td {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-700);
}

body.light-mode .cart-table td {
    border-bottom-color: var(--gray-200);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-product-image {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    background: var(--gray-700);
    overflow: hidden;
    flex-shrink: 0;
}

body.light-mode .cart-product-image {
    background: var(--gray-100);
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-product-type {
    font-size: 13px;
    color: var(--gray-400);
}

/* ===== ORDER SUMMARY SIDEBAR ===== */
.checkout-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-summary {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--border-radius-lg);
    padding: 28px;
}

body.light-mode .order-summary {
    background: var(--white);
    border-color: var(--gray-200);
}

.summary-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-700);
}

body.light-mode .summary-items {
    border-bottom-color: var(--gray-200);
}

.summary-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-700);
}

body.light-mode .summary-item {
    border-bottom-color: var(--gray-200);
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-item-image {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: var(--gray-700);
    flex-shrink: 0;
    overflow: hidden;
}

body.light-mode .summary-item-image {
    background: var(--gray-100);
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.summary-item-meta {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--gray-300);
}

body.light-mode .summary-row {
    color: var(--gray-600);
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-700);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

body.light-mode .summary-row.total {
    border-top-color: var(--gray-200);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-600);
}

body.light-mode .btn-secondary {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-700);
    color: white;
}

body.light-mode .btn-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-400);
    border: none;
}

.btn-ghost:hover {
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-group .btn {
    flex: 1;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-left: 4px solid var(--info);
}

body.light-mode .alert-success {
    color: var(--success);
}

body.light-mode .alert-error {
    color: var(--danger);
}

body.light-mode .alert-warning {
    color: var(--warning);
}

body.light-mode .alert-info {
    color: var(--info);
}

/* ===== LOADING ===== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-600);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== PROMO CODE ===== */
.promo-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.promo-group input {
    flex: 1;
}

.promo-btn {
    padding: 12px 24px;
    background: var(--gray-700);
    color: var(--gray-300);
    border: 1px solid var(--gray-600);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

body.light-mode .promo-btn {
    background: var(--gray-200);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.promo-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== DELIVERY ESTIMATE ===== */
.delivery-estimate {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--border-radius);
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .checkout-steps {
        flex-direction: column;
        padding: 16px;
    }
    
    .step {
        width: 100%;
    }
    
    .checkout-section {
        padding: 24px;
    }
    
    .form-group.two-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
    }
    
    .cart-table th:nth-child(2),
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(2),
    .cart-table td:nth-child(3) {
        display: none;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .checkout-section {
        padding: 20px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-product-image {
        width: 80px;
        height: 80px;
    }
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-bottom: 16px; }
/* ===== MOBILE CART EDITING ===== */
@media (max-width: 768px) {
    /* Force table to behave like cards */
    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
    }
    
    .cart-table thead {
        display: none; /* Hide headers on mobile */
    }
    
    .cart-table tr {
        position: relative;
        padding: 20px;
        margin-bottom: 16px;
        background: var(--gray-800);
        border: 1px solid var(--gray-700);
        border-radius: var(--border-radius-lg);
    }
    
    body.light-mode .cart-table tr {
        background: var(--white);
        border-color: var(--gray-200);
    }
    
    .cart-table td {
        padding: 8px 0 !important;
        border-bottom: none !important;
    }
    
    /* Product row - full width */
    .cart-table td:first-child {
        width: 100%;
        padding-top: 0 !important;
    }
    
    /* Hide price, quantity, total columns - we'll show them inline */
    .cart-table td:nth-child(2),
    .cart-table td:nth-child(3),
    .cart-table td:nth-child(4) {
        display: none;
    }
    
    /* Product card layout */
    .cart-product {
        flex-direction: row;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .cart-product-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-product-info h4 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    /* Mobile price and quantity row */
    .mobile-cart-details {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--gray-700);
    }
    
    body.light-mode .mobile-cart-details {
        border-top-color: var(--gray-200);
    }
    
    .mobile-price {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary);
    }
    
    .mobile-quantity {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-quantity-label {
        font-size: 14px;
        color: var(--gray-400);
    }
    
    /* Remove button positioning */
    .remove-item-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        background: var(--gray-700);
        border: none;
        border-radius: 50%;
        color: var(--gray-400);
    }
    
    body.light-mode .remove-item-btn {
        background: var(--gray-200);
        color: var(--gray-600);
    }
    
    .remove-item-btn:hover {
        background: var(--danger);
        color: white;
    }
    
    /* Quantity controls on mobile */
    .quantity-controls {
        background: var(--gray-700);
        border-radius: 40px;
        padding: 4px;
    }
    
    body.light-mode .quantity-controls {
        background: var(--gray-200);
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
    }
    
    .quantity-display {
        min-width: 40px;
        font-size: 16px;
        font-weight: 700;
    }
    
    /* Cart actions row */
    .cart-actions-row {
        flex-direction: column;
        gap: 16px;
        align-items: stretch !important;
        margin-top: 24px;
        padding-top: 24px;
    }
    
    .cart-actions-row .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cart-subtotal-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        background: var(--gray-700);
        border-radius: var(--border-radius);
        margin-top: 16px;
    }
    
    body.light-mode .cart-subtotal-mobile {
        background: var(--gray-100);
    }
    
    .cart-subtotal-mobile span:first-child {
        font-size: 16px;
        color: var(--gray-400);
    }
    
    .cart-subtotal-mobile span:last-child {
        font-size: 24px;
        font-weight: 700;
        color: var(--primary);
    }
    
    /* Clear cart button mobile */
    #clearCartBtn {
        width: 100%;
        margin-bottom: 16px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 12px;
    }
    
    .mobile-cart-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mobile-quantity {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .remove-item-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .cart-product {
        flex-direction: row;
    }
    
    .cart-product-image {
        width: 70px;
        height: 70px;
    }
    
    .mobile-cart-details {
        flex-direction: row;
        align-items: center;
    }
}
/* ===== MOBILE CARD LAYOUT ===== */
@media (max-width: 768px) {
    .cart-item-card {
        transition: transform 0.2s ease;
    }
    
    .cart-item-card:active {
        transform: scale(0.98);
    }
    
    .quantity-btn {
        -webkit-tap-highlight-color: transparent;
    }
    
    .quantity-btn:active {
        background: var(--primary) !important;
        transform: scale(0.9);
    }
    
    .remove-item-btn:active {
        background: var(--danger) !important;
        color: white !important;
        transform: scale(0.9);
    }
    
    /* Better touch targets */
    .btn,
    .quantity-btn,
    .remove-item-btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Smooth scrolling on iOS */
    .summary-items {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text zoom on iOS */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Full width buttons on mobile */
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
        padding: 16px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .cart-item-card {
        padding: 16px;
    }
    
    .cart-item-card > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-card > div:first-child > div:first-child {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 12px;
    }
    
    .cart-item-card > div:last-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cart-item-card > div:last-child > div:first-child {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .cart-item-card > div:last-child > div:last-child {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Handle notch phones */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .btn-group {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* Dark mode adjustments for mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .cart-item-card {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }
}

/* Light mode mobile */
@media (max-width: 768px) {
    body.light-mode .cart-item-card {
        background: var(--white);
        border-color: var(--gray-200);
    }
    
    body.light-mode .quantity-controls {
        background: var(--gray-100);
    }
    
    body.light-mode .quantity-btn {
        background: var(--gray-300);
        color: var(--gray-800);
    }
    
    body.light-mode .remove-item-btn {
        background: var(--gray-100);
        color: var(--gray-600);
    }
}

/* Landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
    .cart-item-card > div:first-child {
        flex-direction: row;
    }
    
    .cart-item-card > div:first-child > div:first-child {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-card > div:last-child {
        flex-direction: row;
        align-items: center;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .cart-table {
        font-size: 14px;
    }
    
    .cart-product-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-product-info h4 {
        font-size: 15px;
    }
}

/* ===== CREDIT CARD FORM STYLING ===== */

/* Payment form specific styles */
#paymentForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#cardPaymentSection h3 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}

/* Card form inputs */
#paymentForm input[type="text"],
#paymentForm input[type="email"] {
    font-size: 16px;
    padding: 12px 16px;
    background: var(--gray-900);
    color: var(--white);
    border: 2px solid var(--gray-700);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#paymentForm input[type="text"]:focus,
#paymentForm input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* Card number formatting */
#cardNumber {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* CVV formatting */
#cvv {
    font-size: 24px !important;
    letter-spacing: 6px !important;
    text-align: center !important;
}

/* Expiration inputs */
#month,
#year {
    font-size: 14px;
    font-weight: 600;
}

/* Card type display */
#cardTypeDisplay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 13px;
}

#cardIcon {
    font-size: 20px;
}

/* Field status indicators */
.field-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.field-status.valid {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.field-status.valid small::before {
    content: '✓ ';
    font-weight: bold;
}

.field-status.invalid {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.field-status.invalid small::before {
    content: '✗ ';
    font-weight: bold;
}

/* Two column layout for expiry and cvv */
#paymentForm .form-group.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Fraud warning box */
#fraudWarning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.5;
}

#fraudWarning i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Submit button state during payment */
#paymentForm button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsive for payment form */
@media (max-width: 480px) {
    #paymentForm .form-group.two-col {
        grid-template-columns: 1fr;
    }
    
    #cardNumber {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    #cardTypeDisplay {
        font-size: 12px;
        padding: 3px 8px;
    }
}