/* iOS Native App Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --secondary-color: #5AC8FA;
    --background-color: #F2F2F7;
    --card-background: #FFFFFF;
    --text-color: #000000;
    --secondary-text: #8E8E93;
    --border-color: #C6C6C8;
    --separator-color: #C6C6C8;
    --destructive-color: #FF3B30;
    --success-color: #34C759;
    --border-radius: 10px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    /* iOS Safari touch optimizations */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.app-container {
    min-height: 100vh;
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.app-header {
    background: var(--card-background);
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--separator-color);
}

.logo {
    height: 80px;
    margin-bottom: 8px;
    max-width: 100%;
    object-fit: contain;
}

.app-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

/* Form Container */
.form-container {
    padding: 20px;
}

/* Form Sections */
.form-section {
    background: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.form-section:last-of-type {
    margin-bottom: 20px;
}

/* Input Groups */
.input-group {
    margin-bottom: 16px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.section-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.required {
    color: var(--destructive-color);
    font-weight: bold;
    margin-left: 4px;
}

/* Input Fields */
input[type="text"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--card-background);
    color: var(--text-color);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease;
    /* Re-enable text selection and optimize touch */
    -webkit-user-select: text;
    user-select: text;
    touch-action: manipulation;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* DateTime Group */
.datetime-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .datetime-group {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Radio Groups */
.radio-group {
    margin-bottom: 16px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: var(--background-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* iOS Safari touch optimization */
    touch-action: manipulation;
}

/* Only apply hover on non-touch devices to prevent iOS Safari issues */
@media (hover: hover) and (pointer: fine) {
    .radio-option:hover {
        background: #E5E5EA;
    }
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: var(--primary-color);
}

.radio-option span {
    font-size: 16px;
    color: var(--text-color);
}

/* Mangel List Styling */
.mangel-list {
    width: 100%;
}

.mangel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .mangel-header {
        justify-content: flex-start;
        gap: 20px;
    }
}

.mangel-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.btn-add {
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    /* iOS Safari touch optimization */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .btn-add {
        align-self: flex-start;
        min-width: auto;
        width: auto;
        max-width: 200px;
        flex: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .btn-add:hover {
        opacity: 0.8;
    }
}

.mangel-item {
    background: var(--background-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.mangel-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mangel-item-number {
    font-weight: 600;
    color: var(--text-color);
}

.mangel-remove {
    background: var(--destructive-color);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* iOS Safari touch optimization */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.mangel-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.mangel-date {
    grid-column: 1 / -1;
}

.mangel-photos {
    grid-column: 1 / -1;
}

.photo-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-photo {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* iOS Safari touch optimization */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .btn-photo:hover {
        background: var(--primary-color);
    }
}

.btn-photo:disabled {
    background: var(--secondary-text);
    cursor: not-allowed;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.photo-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    position: relative;
    transition: box-shadow 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .photo-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

.photo-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.photo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.photo-filename {
    color: var(--secondary-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

.photo-remove {
    background: var(--destructive-color);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* iOS Safari touch optimization */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .photo-remove:hover {
        background: #d70015;
    }
}

@media (max-width: 767px) {
    .photo-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-thumbnail {
        height: 60px;
    }
}

@media (max-width: 767px) {
    .mangel-fields {
        grid-template-columns: 1fr;
    }
    
    .mangel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

/* Signature Section */
.signature-section {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.signature-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

.signature-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signature-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    background: var(--background-color);
}

.signature-item label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-color);
}

.signature-display {
    min-height: 60px;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    background: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.signature-display img {
    max-width: 100%;
    max-height: 60px;
    border-radius: 4px;
}

.no-signature {
    color: var(--secondary-text);
    font-style: italic;
    font-size: 14px;
}

.signature-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-signature {
    background: var(--primary-color);
    color: white;
}

.btn-clear {
    background: var(--destructive-color);
    color: white;
}

/* Buttons */
.button-group {
    padding: 20px;
    background: var(--card-background);
    border-top: 1px solid var(--separator-color);
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    /* iOS Safari touch optimization */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        background: #0056CC;
    }
}

.btn-primary:active {
    transform: scale(0.98);
    background: #004999;
}

.btn-secondary {
    background: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover {
        background: #E5E5EA;
    }
}

.btn-secondary:active {
    transform: scale(0.98);
    background: #D1D1D6;
}

/* Responsive Design */
@media (max-width: 767px) {
    .app-header {
        padding: 12px 16px;
    }
    
    .form-container {
        padding: 16px;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .signature-pad {
        width: 100%;
        height: 120px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        margin-top: 16px;
    }
    
    .mangel-table {
        font-size: 12px;
    }
    
    .mangel-table th,
    .mangel-table td {
        padding: 6px 4px;
    }
    
    .mangel-table textarea,
    .mangel-table input[type="date"] {
        font-size: 12px;
        padding: 6px;
    }
}

/* iPad specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .signature-pad {
        width: 350px;
        height: 140px;
    }
}

/* Desktop specific */
@media (min-width: 1025px) {
    .signature-pad {
        width: 400px;
        height: 150px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #000000;
        --card-background: #1C1C1E;
        --text-color: #FFFFFF;
        --secondary-text: #8E8E93;
        --border-color: #38383A;
        --separator-color: #38383A;
    }
    
    .signature-pad {
        background: var(--card-background);
        border-color: var(--border-color);
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Form validation */
.error {
    border-color: var(--destructive-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1) !important;
}

.radio-group.error {
    background-color: rgba(255, 59, 48, 0.05);
    border-color: var(--destructive-color) !important;
}

.radio-group.error .section-title {
    color: var(--destructive-color);
}

/* Mangel section error highlighting */
.form-section.error {
    background-color: rgba(255, 59, 48, 0.05);
    border: 2px solid var(--destructive-color);
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
}

/* Signature field error highlighting */
.signature-item.error {
    background-color: rgba(255, 59, 48, 0.05);
    border: 2px solid var(--destructive-color);
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
}

.signature-item.error label {
    color: var(--destructive-color);
    font-weight: 600;
}

.pulse-error {
    animation: pulseError 1s ease-in-out 3;
    background-color: var(--destructive-color) !important;
    color: white !important;
}

@keyframes pulseError {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.success {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1) !important;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: var(--card-background);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--background-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.loading-overlay.success .loading-spinner {
    border-top: 4px solid var(--success-color);
    animation: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--success-color);
}

.loading-overlay.success .loading-spinner::after {
    content: '✓';
}

.loading-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.loading-message {
    font-size: 14px;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.5;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: var(--primary-color);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --separator-color: #000000;
    }
    
    .btn-primary {
        border: 2px solid white;
    }
}

/* Focus indicators */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-background);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--separator-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-text);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    /* iOS Safari touch optimization */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .modal-close:hover {
        background-color: var(--background-color);
        color: var(--text-color);
    }
}

.modal-body {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.modal-signature-pad {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    touch-action: none;
    width: 100%;
    max-width: 800px;
    height: 400px;
    display: block;
}

.modal-signature-pad:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--separator-color);
    justify-content: flex-end;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Modal Adjustments */
@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .modal-signature-pad {
        height: 300px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* iPhone Landscape Modal Adjustments */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 10px;
        min-height: 0;
        overflow-y: auto;
        max-height: calc(100vh - 160px); /* Account for header and footer */
    }
    
    .modal-signature-pad {
        height: 150px; /* Much smaller for landscape */
        max-height: calc(100vh - 180px);
    }
    
    .modal-header {
        padding: 10px 16px;
    }
    
    .modal-footer {
        padding: 10px 16px;
        flex-direction: row; /* Keep buttons horizontal in landscape */
        position: sticky;
        bottom: 0;
        background: var(--card-background);
        border-top: 1px solid var(--separator-color);
        z-index: 10;
    }
    
    .modal-footer .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Small devices in landscape (general) */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-body {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    
    .modal-signature-pad {
        height: min(200px, calc(100vh - 160px));
    }
}

/* Combobox Styling */
.combobox-container {
    position: relative;
    display: flex;
    align-items: center;
}

.combobox-container input {
    width: 100%;
    padding-right: 35px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 35px 12px 16px;
    font-size: 16px;
    background: var(--card-background);
    transition: border-color 0.3s ease;
}

.combobox-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.combobox-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
    /* iOS Safari touch optimization */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .combobox-arrow:hover {
        background: var(--background-color);
        color: var(--text-color);
    }
}

.combobox-arrow.open {
    transform: translateY(-50%) rotate(180deg);
}

.combobox-arrow.manual-mode {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.combobox-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.combobox-dropdown.open {
    display: block;
}

.combobox-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--separator-color);
    transition: background-color 0.2s ease;
    font-size: 16px;
}

.combobox-option:last-child {
    border-bottom: none;
}

@media (hover: hover) and (pointer: fine) {
    .combobox-option:hover {
        background-color: var(--background-color);
    }
}

.combobox-option.highlighted {
    background-color: var(--background-color);
}

.combobox-option.selected {
    background-color: var(--primary-color);
    color: white;
}

.combobox-option.loading {
    color: var(--secondary-text);
    font-style: italic;
    cursor: default;
    text-align: center;
}

.combobox-option.manual {
    border-top: 1px solid var(--separator-color);
    color: var(--secondary-text);
    font-style: italic;
}

@media (hover: hover) and (pointer: fine) {
    .combobox-option.manual:hover {
        background-color: var(--secondary-color);
        color: white;
    }
}

.combobox-option.no-results {
    color: var(--secondary-text);
    font-style: italic;
    cursor: default;
    text-align: center;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .combobox-dropdown {
        max-height: 160px;
    }
    
    .combobox-option {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}