/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

/* Smooth page transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 98%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex-direction: column;
    text-align: center;
    margin: 0 auto;
}

.logo-image {
    height: 120px;
    width: 100%;
    object-fit: contain;
    max-width: 100%;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.logo p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    margin-top: 0.25rem;
}

.event-info {
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
}

.event-info div:first-child {
    font-weight: 600;
    color: #1f2937;
}

/* Main Content */
.main {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 0 0 300px 0;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main {
        padding: 0.5rem 0.5rem 250px 0.5rem;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }
}

.container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15), 
        0 12px 24px rgba(0, 0, 0, 0.1), 
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 1.5rem 1.5rem 0 0;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Form Styles */
.parking-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-input {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.875rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    height: 56px; /* Better touch target */
    min-height: 56px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    font-weight: 500;
    color: #1f2937;
}

/* Ensure select dropdowns match input height */
select.form-input {
    height: 48px;
    min-height: 48px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-input:hover:not(:focus) {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    transition: color 0.3s ease;
}

.form-input:focus::placeholder {
    color: #6b7280;
}

.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    align-items: flex-start;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.link {
    color: #3b82f6;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 0.875rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Copyright Notice */
.copyright-notice {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.copyright-notice p {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Summary Drawer */
.summary-drawer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: white;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15), 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(calc(100% - 80px));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow: hidden;
}

.summary-drawer.open {
    transform: translateY(0);
}

.drawer-handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #3b82f6;
    color: white;
    border-radius: 1.5rem 1.5rem 0 0;
    border-bottom: 1px solid #e5e7eb;
    min-height: 80px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #1d4ed8;
}

.handle-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.drawer-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.drawer-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.drawer-toggle-btn:active {
    transform: scale(0.95);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.summary-drawer.open .toggle-icon {
    transform: rotate(180deg);
}


.handle-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-left: 1rem;
}

.total-preview {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    background: #f0fdf4;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #bbf7d0;
}

.drawer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.drawer-content::-webkit-scrollbar {
    width: 6px;
}

.drawer-content::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.drawer-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.summary-details {
    margin-bottom: 1.5rem;
}

/* Summary item styles for drawer */
.summary-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
    border-top: 2px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.fee, .total-amount {
    color: #059669;
    font-weight: 600;
}

.features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    gap: 1rem;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}


.amount {
    color: #059669;
    font-weight: 700;
}


/* Toast */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b82f6;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.toast.success {
    border-left-color: #059669;
}

.toast.error {
    border-left-color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .header {
        min-height: 100px;
        padding: 1rem 0.75rem;
        backdrop-filter: blur(15px);
    }
    
    .header-content {
        max-width: 100%;
        width: 100%;
    }
    
    .logo {
        width: 100%;
        height: 100%;
    }
    
    .logo-image {
        height: 80px;
        width: 100%;
        max-width: 100%;
    }
    
    .logo p {
        font-size: 0.8rem;
        margin-top: 0.125rem;
    }
    
    .main {
        padding: 1.5rem;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }
    
    .form-container {
        padding: 1.5rem;
        max-width: 99%;
        border-radius: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        height: 48px; /* Consistent height for all form inputs */
        min-height: 48px;
    }
    
    /* Ensure select dropdowns match input height */
    select.form-input {
        height: 48px;
        min-height: 48px;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
    
    #promoCodeGroup .form-input {
        width: 100%;
        max-width: 220px;
        min-width: 180px;
    }
    
    #applyPromoBtn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
        line-height: 1.5;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .checkmark {
        width: 1.125rem;
        height: 1.125rem;
        margin-top: 0.125rem;
        align-self: flex-start;
    }
    
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .summary-drawer {
        transform: translateY(calc(100% - 70px));
    }
    
    .drawer-handle {
        padding: 0.875rem 1.25rem;
        min-height: 70px;
    }
    
    .handle-text {
        font-size: 1.125rem;
    }
    
    .total-preview {
        font-size: 1.25rem;
        padding: 0.375rem 0.75rem;
    }
    
    .drawer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
        max-height: calc(80vh - 70px);
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-width: 90%;
    }
    
    
    .toast-container {
        left: 1rem;
        right: 1rem;
    }
    
    .toast {
        max-width: none;
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1.125rem 1.25rem;
        min-height: 56px;
    }
    
    .btn-primary, .btn-secondary {
        min-height: 56px; /* Better touch target size */
        padding: 1.125rem 2rem;
    }
    
    .method-btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }
    
    .checkbox-label {
        min-height: 48px;
        padding: 0.5rem 0;
    }
} 

.content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
}

/* On mobile: form first, summary below */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .form-container {
    order: 1;
  }

  .summary-card {
    order: 2;
  }
}

/* Promo Code Section */
#promoCodeGroup {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 0.75rem 0.75rem 0.4rem 0.75rem;
  margin-bottom: 0.1rem;
  box-shadow: 0 2px 8px rgba(59,130,246,0.06);
}
#promoCodeGroup .form-label {
  color: #3b82f6;
  font-weight: 600;
}
#promoCodeGroup .form-input {
  border: 2px solid #dbeafe;
  background: #f1f5f9;
  max-width: 250px;
  width: 250px;
}
#promoCodeGroup .form-input:focus {
  border-color: #3b82f6;
  background: #fff;
}
#promoSponsor {
  color: #059669;
  font-weight: 500;
  margin-top: 0.25rem;
  transition: all 0.2s;
}
#promoCodeError {
  color: #ef4444;
  font-size: 0.92rem;
  min-height: 1.1rem;
}
#applyPromoBtn {
  min-width: 70px;
  font-size: 0.9rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  border: 1.5px solid #3b82f6;
  background: #e0e7ff;
  color: #1e40af;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
#applyPromoBtn:hover {
  background: #3b82f6;
  color: #fff;
}

/* Summary Card Promo/Fees */
#promoDiscountRow span:last-child {
  color: #ef4444;
  font-weight: 600;
}
#handlingFeeRow span:last-child {
  color: #f59e42;
  font-weight: 600;
}
#gstOnHandlingFeeRow span:last-child {
  color: #3b82f6;
  font-weight: 600;
}
#promoDiscountRow, #handlingFeeRow, #gstOnHandlingFeeRow {
  background: #f9fafb;
  border-radius: 0.5rem;
  margin: 0.25rem 0;
  padding: 0.5rem 0.75rem;
  align-items: center;
}

.sponsor-section {
  margin: 2.5rem 0 1.5rem 0;
  text-align: center;
}
.sponsor-message {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 0.75rem;
}
.sponsor-box {
  display: inline-block;
  background: #f9fafb;
  border: 2px solid #3b82f6;
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  color: #3b82f6;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(59,130,246,0.07);
  margin: 0 auto;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .sponsor-box {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Extra small screen optimizations */
@media (max-width: 480px) {
    .header {
        min-height: 100px;
        padding: 0.75rem 0.25rem;
    }
    
    .header-content {
        max-width: 92%;
        width: 100%;
    }
    
    .logo {
        width: 100%;
        height: 100%;
    }
    
    .logo-image {
        height: 80px;
        width: 100%;
        max-width: 100%;
    }
    
    .logo p {
        font-size: 0.75rem;
        margin-top: 0.125rem;
    }
    
    .main {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
        max-width: 98%;
        border-radius: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 16px;
        height: 48px; /* Consistent height for all form inputs */
        min-height: 48px;
    }
    
    /* Ensure select dropdowns match input height */
    select.form-input {
        height: 48px;
        min-height: 48px;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
    
    #promoCodeGroup .form-input {
        max-width: 200px;
        min-width: 150px;
    }
    
    #applyPromoBtn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.4;
        gap: 0.625rem;
    }
    
    .checkmark {
        width: 1rem;
        height: 1rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .summary-card {
        max-width: 92%;
        padding: 1.25rem;
        margin-top: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .modal-content {
        margin: 0.75rem;
        padding: 1.25rem;
        max-width: 92%;
    }
    
    .toast-container {
        left: 0.75rem;
        right: 0.75rem;
    }
    
    .toast {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
}

/* Large Mobile Devices (iPhone 15 Pro Max, etc.) */
@media (min-width: 430px) and (max-width: 768px) {
    .main {
        padding: 0.25rem;
    }
    
    .form-container {
        max-width: 99.5%;
    }
    
    .summary-card {
        max-width: 99%;
    }
    
    .header-content {
        max-width: 99%;
    }
}

/* Very Large Mobile Devices (iPhone 15 Pro Max, Samsung S24 Ultra, etc.) */
@media (min-width: 480px) and (max-width: 768px) {
    .main {
        padding: 0.125rem;
    }
    
    .form-container {
        max-width: 99.8%;
    }
    
    .summary-card {
        max-width: 99.5%;
    }
    
    .header-content {
        max-width: 99.5%;
    }
}

/* Camera Interface Styles */
.input-method-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 0.5rem;
    gap: 4px;
}

.method-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.method-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.method-btn:hover:not(.active) {
    color: #374151;
}

.input-container {
    margin-top: 0.5rem;
}

.btn-capture {
    width: 100%;
    padding: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.btn-capture:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.camera-icon {
    font-size: 1.5rem;
}

.photo-preview {
    margin-top: 0.5rem;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    object-fit: cover;
}

.btn-retake {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-retake:hover {
    background: #dc2626;
}

/* Loading state for photo upload */
.photo-uploading {
    position: relative;
    pointer-events: none;
}

.photo-uploading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.photo-uploading::before {
    content: 'Uploading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    z-index: 1;
}

/* ANPR Results Styles */
.anpr-results {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.anpr-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #0369a1;
}

.anpr-icon {
    font-size: 1.2rem;
}

.anpr-title {
    font-size: 1rem;
}

.anpr-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detected-plate {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.anpr-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.plate-display {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.plate-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    background: white;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    letter-spacing: 0.1em;
    font-family: 'Courier New', monospace;
}

.plate-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-edit {
    padding: 0.5rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-edit:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.anpr-confidence {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.confidence-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.confidence-score {
    font-weight: 600;
    color: #059669;
    font-size: 0.9rem;
}

.anpr-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-confirm {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-confirm:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-reject {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-reject:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ANPR Processing Styles */
.anpr-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    margin-top: 1rem;
}

.processing-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.processing-text {
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ANPR Error States */
.anpr-error {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.anpr-error .error-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Low confidence warning */
.confidence-low {
    color: #f59e0b !important;
}

.confidence-medium {
    color: #f59e0b !important;
}

.confidence-high {
    color: #059669 !important;
}

/* Mobile responsive adjustments for camera interface */
@media (max-width: 480px) {
    .method-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .btn-capture {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .camera-icon {
        font-size: 1.2rem;
    }
    
    .anpr-results {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .plate-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .plate-input {
        font-size: 1rem;
        padding: 0.625rem;
    }
    
    .anpr-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-confirm, .btn-reject {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .anpr-processing {
        padding: 1.5rem;
    }
}

/* Camera Interface */
.camera-interface {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    text-align: center;
}

/* Photo Preview */
.preview-container {
    text-align: center;
}

.preview-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-confirm {
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    background: #059669;
    transform: translateY(-1px);
}