:root {
    --primary: #4a5d4e; /* Sage Green */
    --accent: #d4af37;  /* Soft Gold */
    --bg-light: #fdfbf7; /* Cream */
    --text-dark: #2c332e;
    --text-muted: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Navigation */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo span {
    font-weight: 300;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    transition: var(--transition);
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown > a::after {
    content: '▾';
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 240px;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 150;
}

.dropdown-menu li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: flex;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    gap: 0.3rem;
    flex-direction: column;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 93, 78, 0.2);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
}

/* Hero Section */
#hero {
    height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #e7ece8 0%, #fdfbf7 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

#hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary);
}

#hero h1 span {
    color: var(--text-dark);
    font-style: italic;
    font-weight: 400;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.important-distinction {
    margin: 2rem auto 0;
    max-width: 900px;
    text-align: center;
    color: rgba(44, 51, 46, 0.7);
    font-size: 0.85rem;
    line-height: 1.7;
}

.important-distinction .distinction-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.service-card.selected {
    border-color: var(--primary);
    box-shadow: 0 28px 45px rgba(74, 93, 78, 0.25);
    transform: translateY(-5px);
    background: rgba(74, 93, 78, 0.14);
    color: var(--primary);
}

.service-card.selected .service-icon,
.service-card.selected h3,
.service-card.selected .price {
    color: var(--primary);
}

.service-card.highlight {
    border-color: rgba(212, 175, 55, 0.85);
    background: rgba(212, 175, 55, 0.12);
    color: var(--text-dark);
    box-shadow: 0 30px 50px rgba(212, 175, 55, 0.25);
}

.service-card.highlight .service-icon,
.service-card.highlight .price {
    color: var(--accent);
}

.service-card.highlight.selected {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.25);
    color: var(--text-dark);
    box-shadow: 0 32px 60px rgba(212, 175, 55, 0.35);
    transform: translateY(-5px);
}

.service-qty {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qty-btn {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--white);
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 40px;
}

.qty-value {
    min-width: 24px;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    opacity: 0.8;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Specialization */
#specialization {
    background: var(--primary);
    color: var(--white);
}

.spec-flex {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.spec-content {
    flex: 1;
}

.spec-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.spec-list {
    list-style: none;
    margin-top: 2rem;
}

.spec-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.spec-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.spec-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.spec-card {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.spec-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Travel */
.travel-box {
    background: var(--white);
    padding: 4rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.fee-breakdown {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 3rem;
}

.fee-item {
    display: flex;
    flex-direction: column;
}

.fee-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fee-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.estimate-controls {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.estimate-controls label {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-right: auto;
}

.estimate-controls input {
    flex: 1;
    min-width: 240px;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.estimate-controls .btn-primary {
    height: 48px;
    align-self: stretch;
}

.estimate-help {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.estimate-feedback {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 1.2rem;
}

.estimate-summary {
    margin-top: 2rem;
    background: rgba(74, 93, 78, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(74, 93, 78, 0.15);
    font-weight: 500;
    min-height: 80px;
}
/* Contact */
.contact-card {
    background: radial-gradient(circle at top left, #fdfbf7 0%, #e7ece8 100%);
    padding: 6rem 4rem;
    border-radius: 12px;
    text-align: center;
}

.contact-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.contact-inputs label {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 600;
}

.contact-inputs input {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.contact-inputs input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-method {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--white);
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.payment-method.active {
    background: var(--accent);
    border-color: rgba(212, 175, 55, 0.7);
    color: var(--white);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.3);
}

.payment-display {
    margin-top: 2rem;
    border-radius: 12px;
    padding: 2rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.payment-display__qr {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
}

.payment-display.active .payment-display__qr {
    display: block;
}

.payment-display__text {
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

/* Client Login Section */
.client-login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.client-login-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

.quick-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-login-form label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.quick-login-form input {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.quick-login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 93, 78, 0.1);
}

.login-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.login-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-links a:hover {
    color: var(--accent);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.invoices-preview {
    margin-top: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.invoice-preview-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.invoice-preview-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.invoice-preview-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.invoice-preview-item .invoice-total {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #c4a028;
    transform: translateY(-1px);
}

.account-number {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.loading-text {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.contact-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 3rem;
}

.contact-item {
    font-size: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--accent);
}

#scheduleNowBtn {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 60px;
}

#scheduleNowBtn:not(.disabled):not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 93, 78, 0.3);
}

#scheduleNowBtn.disabled,
#scheduleNowBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.invoice-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

#downloadInvoice {
    margin-top: 1.5rem;
    width: 220px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: left;
    flex-wrap: wrap;
}

.footer-crypto {
    flex: 1;
    min-width: 260px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-copy {
    white-space: nowrap;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.crypto-select-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.crypto-select-row select {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--white);
    font-weight: 600;
    min-width: 190px;
}

.copy-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(74, 93, 78, 0.25);
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards ease-out;
}

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

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .travel-box {
        padding: 2.5rem;
    }

    .contact-card {
        padding: 3rem 2rem;
    }

    .payment-methods {
        flex-wrap: wrap;
        justify-content: center;
    }

    .payment-display {
        max-width: 100%;
    }

    .estimate-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .estimate-controls label {
        width: 100%;
    }

    .estimate-controls input {
        width: 100%;
    }

    .contact-inputs {
        flex-direction: column;
    }

    .contact-inputs label {
        width: 100%;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    header {
        height: auto;
        padding: 0.5rem 0;
    }

    .nav-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        z-index: 1001;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(253, 251, 247, 0.95);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        transform: translateY(-20px);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    header.menu-open .nav-links {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    #hero {
        height: auto;
        padding: 6rem 0;
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .spec-flex {
        flex-direction: column;
        text-align: center;
    }

    .spec-image,
    .spec-content {
        width: 100%;
    }

    .fee-breakdown {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: auto;
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu li + li {
        border-top: none;
    }

    .dropdown-menu a {
        padding-left: 1rem;
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .crypto-select-row {
        justify-content: center;
    }

    .copy-btn {
        width: 100%;
    }

    /* Services Grid - Single Column on Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Typography Scaling */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    /* Contact Card */
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-inputs {
        gap: 1rem;
    }

    .contact-inputs input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Travel Box */
    .travel-box {
        padding: 2rem 1.5rem;
    }

    .estimate-controls {
        flex-direction: column;
    }

    .estimate-controls button {
        width: 100%;
    }

    /* Payment Methods */
    .payment-methods {
        flex-direction: column;
        gap: 0.75rem;
    }

    .payment-method {
        width: 100%;
        padding: 1rem;
    }

    .payment-display__qr {
        max-width: 100%;
        height: auto;
    }

    /* Buttons - Larger Touch Targets */
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* iOS recommended touch target */
    }

    .qty-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem;
        min-height: 44px;
    }

    textarea {
        min-height: 100px;
    }

    /* Footer */
    .footer-content {
        gap: 2rem;
    }

    .footer-crypto {
        width: 100%;
    }

    .crypto-select-row {
        flex-direction: column;
    }

    .crypto-select-row select {
        width: 100%;
        min-width: auto;
    }

    /* Hero Section */
    .hero-content {
        text-align: center;
    }

    .hero-btns {
        width: 100%;
    }

    .hero-btns a {
        width: 100%;
        text-align: center;
    }

    /* Map */
    #serviceMap {
        height: 300px;
        margin: 1rem 0;
    }

    /* Touch-friendly improvements */
    a, button {
        -webkit-tap-highlight-color: rgba(74, 93, 78, 0.2);
        touch-action: manipulation;
    }

    /* Prevent text size adjustment on iOS */
    input, select, textarea, button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Improve select dropdown on mobile */
    select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c332e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 12px;
        padding-right: 2.5rem;
    }

    /* Container Padding */
    .container {
        padding: 0 1rem;
    }

    /* Section Padding */
    section {
        padding: 3rem 0;
    }

    /* Important Distinction */
    .important-distinction {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .distinction-title {
        font-size: 1.25rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    #hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .travel-box {
        padding: 1.5rem 1rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }

    .estimate-summary {
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    /* Even smaller text on very small screens */
    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* Tablet-specific optimizations */
@media (min-width: 481px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-inputs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .estimate-controls {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1rem;
    }
}

#serviceMap {
  width: 100%;
  height: 420px;
  border-radius: 12px;
}

/* Map Responsive */
@media (max-width: 768px) {
    #serviceMap {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #serviceMap {
        height: 250px;
    }
}

/* Signup Modal Styles */
.signup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.signup-modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    position: relative;
    margin: auto;
}

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

.signup-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-modal-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.signup-modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.signup-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.signup-form .form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.signup-form .form-group input {
    padding: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.signup-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 93, 78, 0.1);
}

.signup-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.signup-form .form-actions button {
    flex: 1;
    padding: 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.signup-form .form-actions .btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.signup-form .form-actions .btn-primary:hover:not(:disabled) {
    background: var(--accent);
    transform: translateY(-1px);
}

.signup-form .form-actions .btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.signup-form .form-actions .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.signup-form .form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signup-modal .error-message,
.signup-modal .success-message {
    margin-top: 1rem;
    padding: 0.875rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.signup-modal .error-message {
    background: #f8d7da;
    color: #721c24;
}

.signup-modal .success-message {
    background: #d4edda;
    color: #155724;
}

/* Disabled button state */
.btn-primary.disabled,
#scheduleNowBtn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive signup modal */
@media (max-width: 768px) {
    .signup-modal {
        padding: 0;
        align-items: flex-end; /* Slide up from bottom on mobile */
    }
    
    .signup-modal-content {
        padding: 1.5rem;
        max-width: 100%;
        border-radius: 20px 20px 0 0; /* Rounded top corners only */
        max-height: 95vh;
        margin: 0;
        animation: modalSlideUp 0.3s ease-out;
    }
    
    @keyframes modalSlideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .signup-form .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .signup-form .form-actions button {
        width: 100%;
        min-height: 48px; /* Larger touch target on mobile */
    }
    
    .signup-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .signup-modal-header p {
        font-size: 0.9rem;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .signup-modal-content {
        padding: 1.25rem;
        border-radius: 16px 16px 0 0;
    }
    
    .signup-form {
        gap: 1rem;
    }
    
    .signup-form .form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Utility classes for inline styles */
.accent-color {
    color: var(--accent);
}

.flex-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-link {
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-link-large {
    display: inline-block;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
}

.btn-link-large.margin-right {
    margin-right: 1rem;
}

.hidden {
    display: none;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.margin-top-large {
    margin-top: 3rem;
}

.text-muted {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.loading-indicator {
    padding: 2rem;
    text-align: center;
}
