/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #17afa5;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

*:focus-visible {
    outline: 3px solid #17afa5;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   DESIGN TOKENS
   =========================================== */

:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-input: #1e1e1e;
    --border: #2a2a2a;
    --border-light: #3a3a3a;
    --text: #f5f5f5;
    --text-secondary: #c0c0c0;
    --text-muted: #888888;
    --primary: #17afa5;
    --primary-light: #1fc4b8;
    --primary-dark: #129e95;
    --primary-glow: rgba(23, 175, 165, 0.3);
    --primary-subtle: rgba(23, 175, 165, 0.12);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: -apple-system, 'SF Pro Text', 'Helvetica Neue', Inter, sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===========================================
   LOADING SCREEN
   =========================================== */

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg);
}

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

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

.loading-screen p {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

/* ===========================================
   ERROR SCREEN
   =========================================== */

.error-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
    text-align: center;
    background: var(--bg);
}

.error-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--error);
    margin-bottom: 28px;
}

.error-screen h2 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
}

.error-screen p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    max-width: 400px;
    font-size: 15px;
    line-height: 1.7;
}

.error-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===========================================
   LANDING SCREEN
   =========================================== */

.landing-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 24px;
    background: var(--bg);
}

.landing-content {
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.landing-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px var(--primary-glow);
}

.landing-screen h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.landing-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: left;
    margin-bottom: 40px;
}

.landing-info-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.landing-info-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.landing-footer { text-align: center; }

.landing-footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-dot {
    width: 3px;
    height: 3px;
    background: var(--border-light);
    border-radius: 50%;
}

/* ===========================================
   HONEYPOT
   =========================================== */

.form-field-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ===========================================
   MECHANIC PROFILE INTRO
   =========================================== */

.profile-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--bg);
}

.profile-card {
    max-width: 480px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 24px;
    background: linear-gradient(180deg, rgba(23, 175, 165, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.profile-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid var(--border);
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--primary-subtle);
    border: 1px solid rgba(23, 175, 165, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.profile-badge i { font-size: 11px; }

.profile-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.profile-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.profile-contact-item i { color: var(--primary); font-size: 12px; }
.profile-contact-item:hover { border-color: var(--primary); color: var(--text); }

.profile-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.profile-section:last-of-type { border-bottom: none; }

.profile-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.profile-section-label i { color: var(--primary); font-size: 13px; }

.profile-services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.profile-service-row:last-child { border-bottom: none; }

.profile-service-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.profile-service-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.profile-empty {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-hours-grid { display: flex; flex-direction: column; gap: 0; }

.profile-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.profile-day { font-size: 13px; font-weight: 600; color: var(--text); min-width: 36px; }
.profile-time { font-size: 13px; color: var(--text-secondary); }
.profile-hours-row.closed .profile-day { color: var(--text-muted); }
.profile-hours-row.closed .profile-time { color: var(--text-muted); font-style: italic; }

.profile-deposit {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 0 24px;
    padding: 12px 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.profile-deposit i { color: var(--warning); font-size: 14px; flex-shrink: 0; }

.profile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 48px);
    margin: 20px 24px 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.profile-cta:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-glow);
}

.profile-cta:active { transform: translateY(0); }

.profile-footer {
    max-width: 480px;
    width: 100%;
    margin-top: 24px;
    padding-top: 16px;
    text-align: center;
}

.profile-footer .footer-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.profile-footer .footer-powered strong { color: var(--text-secondary); font-weight: 600; }

.footer-logo { width: 18px; height: 18px; border-radius: 4px; }

@media (max-width: 600px) {
    .profile-screen { padding: 24px 14px; }
    .profile-hero { padding: 28px 20px 20px; }
    .profile-logo { width: 68px; height: 68px; border-radius: 16px; }
    .profile-name { font-size: 21px; }
    .profile-section { padding: 16px 20px; }
    .profile-cta { width: calc(100% - 40px); margin: 16px 20px 20px; padding: 15px 20px; font-size: 16px; }
    .profile-deposit { margin: 0 20px; }
}

/* ===========================================
   BOOKING CHAT SCREEN
   =========================================== */

.booking-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-container {
    width: 100%;
    max-width: 540px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Sticky Chat Header */
.chat-header {
    flex-shrink: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.header-left {
    width: 44px;
    display: flex;
    align-items: center;
}

.header-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.header-back:hover { background: rgba(23,175,165,0.1); }

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.header-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 8px;
    flex-shrink: 0;
}

.header-status {
    font-size: 11px;
    color: var(--text-muted);
}

.header-right {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-phone {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.header-phone:hover { background: rgba(23,175,165,0.1); }

/* Chat Scrollable Area */
.chat-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
    padding-bottom: 100px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.chat-area::-webkit-scrollbar { display: none; }

/* Timestamp */
.chat-timestamp {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin: 8px 0 16px;
    font-weight: 500;
}

/* ===========================================
   MESSAGE BUBBLES
   =========================================== */

.message-row {
    display: flex;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(14px);
    animation: msgSlideUp 0.3s ease forwards;
}

.message-row.left {
    justify-content: flex-start;
    padding-right: 48px;
}

.message-row.right {
    justify-content: flex-end;
    padding-left: 48px;
}

.bubble {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bubble.left-bubble {
    background: var(--bg-card);
    color: var(--text);
    border-radius: 18px 18px 18px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.bubble.right-bubble {
    background: var(--primary);
    color: white;
    border-radius: 18px 18px 6px 18px;
}

@keyframes msgSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 18px 18px 18px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    width: fit-content;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* ===========================================
   CHAT CARDS (embedded form cards)
   =========================================== */

.card-row {
    display: flex;
    margin-bottom: 10px;
    padding-right: 16px;
    opacity: 0;
    transform: translateY(14px);
    animation: msgSlideUp 0.35s ease forwards;
}

.chat-card {
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0.5px 2px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 360px;
    border: 0.5px solid rgba(255,255,255,0.06);
}

/* Submitted overlay */
.chat-card.submitted {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
}

.chat-card.submitted::after {
    content: '✓ Done';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    border-radius: 18px;
}

/* ===========================================
   SERVICE SELECTION CARD
   =========================================== */

.service-card-header {
    padding: 14px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 0.5px solid var(--border);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.service-item:last-of-type { border-bottom: none; }

.service-item.selected { background: var(--primary-subtle); }

.service-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: white;
    flex-shrink: 0;
}

.service-icon.blue    { background: #17afa5; }
.service-icon.green   { background: #22c55e; }
.service-icon.purple  { background: #AF52DE; }
.service-icon.red     { background: #FF3B30; }
.service-icon.orange  { background: #FF9500; }
.service-icon.yellow  { background: #FFCC00; color: #7A6200; }

.service-info { flex: 1; min-width: 0; }

.service-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.service-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.service-price-right {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.service-duration {
    font-size: 11px;
    color: var(--text-muted);
}

.service-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
}

.service-add-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.service-card-footer {
    padding: 10px 14px 12px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    border-top: 0.5px solid var(--border);
    min-height: 38px;
    transition: color 0.2s;
}

.service-card-footer.has-selection {
    color: var(--primary);
    font-weight: 600;
}

/* ===========================================
   CART BAR
   =========================================== */

.cart-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(110%);
    width: calc(100% - 24px);
    max-width: 516px;
    z-index: 200;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    padding-bottom: max(12px, var(--safe-bottom));
    pointer-events: none;
}

.cart-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cart-bar-inner {
    background: #111111;
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
    border: 0.5px solid rgba(255,255,255,0.08);
}

.cart-bar.confirmed .cart-bar-inner {
    background: #166534;
    transition: background 0.4s ease;
}

.cart-info {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cart-info .cart-icon { font-size: 13px; opacity: 0.7; flex-shrink: 0; }

.cart-info #cartText {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-detail {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-left: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-continue-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.cart-continue-btn:active { transform: scale(0.96); opacity: 0.9; }

.cart-bar.confirmed .cart-continue-btn { display: none; }

.cart-confirmed-text {
    display: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 6px;
}

.cart-bar.confirmed .cart-confirmed-text { display: flex; }
.cart-bar.confirmed .cart-info { display: none; }

@keyframes confirmPulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.02); }
    100% { transform: translateX(-50%) scale(1); }
}

.cart-bar.confirmed { animation: confirmPulse 0.5s ease; }

/* ===========================================
   INLINE FORM CARDS (vehicle, contact, etc.)
   =========================================== */

.form-card { padding: 16px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-group select,
.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font);
    background: var(--bg-input);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.form-group textarea {
    resize: none;
    min-height: 68px;
}

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

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23,175,165,0.12);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.form-divider::before,
.form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.card-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    margin-top: 12px;
    transition: opacity 0.2s, transform 0.15s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.card-submit-btn:hover { background: var(--primary-light); }
.card-submit-btn:active { transform: scale(0.98); opacity: 0.9; }

.card-submit-btn:disabled {
    background: var(--border-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Section label inside form card */
.form-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 14px 0 8px;
    padding-top: 12px;
    border-top: 0.5px solid var(--border);
}

.form-section-label:first-child { margin-top: 0; border-top: none; padding-top: 0; }

/* ===========================================
   CALENDAR CARD
   =========================================== */

.calendar-card { padding: 14px 14px 12px; }

.cal-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-month-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.cal-nav-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.cal-nav-btn:disabled { color: var(--border-light); cursor: default; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.cal-day-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 0;
    text-transform: uppercase;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: all 0.15s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.cal-day:hover:not(.disabled):not(.empty) { background: var(--primary-subtle); }
.cal-day.selected { background: var(--primary); color: white; font-weight: 700; }
.cal-day.disabled { color: var(--border-light); cursor: default; }
.cal-day.today:not(.selected) { color: var(--primary); font-weight: 700; }

.cal-day.today:not(.selected)::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.cal-day.empty { cursor: default; }

/* Time slots inside calendar */
.time-section {
    margin-top: 12px;
    display: none;
}

.time-section.visible {
    display: block;
    animation: msgSlideUp 0.3s ease forwards;
    opacity: 0;
}

.time-group-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    margin-top: 10px;
}

.time-group-label:first-child { margin-top: 0; }

.time-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.time-chip {
    padding: 7px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-input);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
}

.time-chip:hover { border-color: var(--primary); background: var(--primary-subtle); }
.time-chip.selected { background: var(--primary); color: white; border-color: var(--primary); font-weight: 600; }

/* ===========================================
   RECEIPT CARD
   =========================================== */

.receipt-card { padding: 16px; }

.receipt-header {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-light);
    margin-bottom: 12px;
}

.receipt-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.receipt-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.receipt-section { margin-bottom: 12px; }

.receipt-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text);
}

.receipt-line .line-price { font-weight: 600; }

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1.5px solid var(--border-light);
    margin-top: 6px;
}

.receipt-total .total-label { font-size: 15px; font-weight: 700; color: var(--text); }
.receipt-total .total-amount { font-size: 19px; font-weight: 700; color: var(--primary); }

.receipt-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.receipt-detail-row i { width: 14px; text-align: center; color: var(--text-muted); margin-top: 2px; flex-shrink: 0; }

.receipt-deposit {
    text-align: center;
    padding: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    margin: 12px 0;
}

.receipt-policy {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid var(--border);
}

.policy-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 8px;
}

.policy-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ===========================================
   ACTION CHIPS
   =========================================== */

.action-chips {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
    opacity: 0;
    animation: msgSlideUp 0.3s ease forwards;
    flex-wrap: wrap;
    padding-right: 16px;
}

.action-chip {
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.action-chip:active { transform: scale(0.96); }
.action-chip.primary { background: var(--primary); color: white; }
.action-chip.primary:hover { background: var(--primary-light); }
.action-chip.outline { background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border-light); }
.action-chip.outline:hover { border-color: var(--text-muted); color: var(--text); }

/* ===========================================
   PROMO CARD (after success in chat)
   =========================================== */

.promo-card {
    padding: 20px 16px;
    text-align: center;
}

.promo-card .promo-logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.promo-card .promo-tagline {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.promo-card .promo-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

/* ===========================================
   PHOTO UPLOAD (in contact form card)
   =========================================== */

.photo-upload-area {
    border: 1.5px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-input);
    margin-top: 4px;
}

.photo-upload-area:hover { border-color: var(--primary); background: var(--primary-subtle); }
.photo-upload-area.dragging { border-color: var(--primary); background: var(--primary-subtle); }

.photo-upload-icon { font-size: 22px; color: var(--text-muted); margin-bottom: 6px; }
.photo-upload-area:hover .photo-upload-icon { color: var(--primary); }
.photo-upload-text { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.photo-upload-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.photo-preview {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.75);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-uploading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.photo-uploading .mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===========================================
   SUCCESS SCREEN
   =========================================== */

.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
    text-align: center;
    background: var(--bg);
}

.success-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.25);
}

.success-screen h2 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.success-screen > p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    max-width: 380px;
    font-size: 15px;
    line-height: 1.7;
}

.success-hint { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.request-summary {
    margin-top: 28px;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 100%;
}

.request-summary h3 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-muted); font-weight: 500; }
.summary-row .value { color: var(--text); font-weight: 600; text-align: right; }

/* App Promo */
.app-promo {
    margin-top: 32px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
}

.promo-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px var(--primary-glow);
    object-fit: contain;
}

.app-promo h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }

.app-promo > p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.promo-btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.promo-btn .apple-icon { width: 16px; height: 16px; }

/* btn-submit used in payment-cancelled screen */
.btn-submit {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ===========================================
   SHAKE ANIMATION
   =========================================== */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 600px) {
    .landing-screen { padding: 40px 16px; }
    .landing-screen h1 { font-size: 32px; }
    .landing-info-card { padding: 22px 18px; }

    .chat-container { max-width: 100%; }
    .chat-area { padding: 12px 10px; padding-bottom: 100px; }

    .card-row { padding-right: 10px; }
    .chat-card { max-width: 300px; }

    .form-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

    .success-screen h2 { font-size: 22px; }
    .app-promo { padding: 20px 16px; }
}

@media (min-width: 500px) {
    .chat-container {
        border-left: 0.5px solid rgba(255,255,255,0.05);
        border-right: 0.5px solid rgba(255,255,255,0.05);
    }
}
