* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(8, 145, 178, 0.1);
}

:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --accent: #f59e0b;
    --bg: #fafafa;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Header - More compact on mobile */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.header p {
    font-size: clamp(0.875rem, 3.5vw, 1.25rem);
    opacity: 0.95;
    font-weight: 400;
}

/* Container - Better mobile padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Search Box - Bigger touch target */
.search-box {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 2px solid var(--border);
}

/* Only make search box sticky on tablets and larger screens */
@media (min-width: 768px) {
    .search-box {
        position: sticky;
        top: 100px;
        z-index: 90;
    }
}

.search-input {
    width: 100%;
    padding: 1rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    background: var(--bg);
    /* Better mobile input */
    -webkit-appearance: none;
    appearance: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Grid - Single column on mobile, better spacing */
.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .guides-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Guide Cards - Better mobile touch targets */
.guide-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    /* Bigger touch target */
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.guide-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    border-radius: 16px 0 0 16px;
}

.guide-card:active::before {
    transform: scaleY(1);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.guide-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.guide-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Modal - Full screen on mobile */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    display: block;
}

.modal-content {
    background: var(--card-bg);
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.25s ease;
}

@media (min-width: 768px) {
    .modal.active {
        padding: 2rem;
        display: flex;
        align-items: start;
        justify-content: center;
    }

    .modal-content {
        border-radius: 20px;
        max-width: 900px;
        min-height: auto;
        max-height: 90vh;
        margin-top: 2rem;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    padding-right: 3rem;
}

/* Close button - Bigger for mobile */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.75rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* Better touch target */
    touch-action: manipulation;
}

.close-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.modal-body {
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .modal-body {
        padding: 2rem;
    }
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

/* Better mobile typography in modal */
.modal-body h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.modal-body ul,
.modal-body ol {
    margin-left: 1.25rem;
    font-size: 0.9375rem;
}

.modal-body li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.modal-body code {
    font-size: 0.875rem;
    word-break: break-all;
}

/* Help Section */
.help-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    text-align: center;
    margin-top: 2rem;
}

.help-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.help-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .contact-info {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.contact-card {
    background: var(--bg);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.9375rem;
    /* Better mobile touch */
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hours-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid var(--primary);
}

.hours-title {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hours-grid {
    display: grid;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.hours-day {
    font-weight: 600;
    color: var(--text);
}

.hours-time {
    color: var(--text-light);
    font-weight: 500;
}

.hours-closed {
    color: #dc2626;
    font-weight: 600;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Fix iOS zoom on input focus */
@media screen and (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Feedback Section */
.feedback-section {
    background: var(--bg);
    border-top: 2px solid var(--border);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 0 0 12px 12px;
}

.feedback-title {
    text-align: center;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.feedback-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feedback-btn {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.feedback-btn-yes {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

.feedback-btn-yes:hover {
    background: #dcfce7;
    border-color: #4ade80;
    transform: translateY(-2px);
}

.feedback-btn-yes:active {
    transform: scale(0.98);
}

.feedback-btn-no {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}

.feedback-btn-no:hover {
    background: #fee2e2;
    border-color: #f87171;
    transform: translateY(-2px);
}

.feedback-btn-no:active {
    transform: scale(0.98);
}

.feedback-thanks {
    text-align: center;
    padding: 1rem;
    background: #dcfce7;
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
    display: none;
}

.feedback-thanks.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
