:root {
    --bg-charcoal: #1A1A1A;
    --forest-green: #2E5B2E;
    --warm-gold: #D4A017;
    --off-white: #F2F2F2;
    --text-muted: #CCCCCC;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-color: 0.3s ease;
}

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

body {
    background-color: var(--bg-charcoal);
    color: var(--off-white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-color);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--warm-gold);
    color: var(--warm-gold);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--warm-gold);
    color: var(--bg-charcoal);
    transform: scale(0.98);
}

.btn-large {
    font-size: 2rem;
    border-bottom: 2px solid var(--warm-gold);
    padding-bottom: 0.5rem;
}

.btn-large:hover {
    color: var(--warm-gold);
}

/* Hero Section */
.hero {
    height: 62dvh;
    min-height: 420px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-img.active {
    opacity: 0.6;
    /* Dimmed slightly for text readability */
}

/* Gradient Overlay for Text Readability */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.3), rgba(26, 26, 26, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--off-white);
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}

.hero-sub {
    font-size: 1.5rem;
    color: rgba(242, 242, 242, 0.9);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.3s forwards;
}

/* Hero Form */
.hero-form {
    opacity: 0;
    animation: fadeUp 1s ease-out 0.6s forwards;
}

.input-group {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    font-family: var(--font-body);
    outline: none;
}

.input-group input::placeholder {
    color: rgba(242, 242, 242, 0.6);
}

.input-group input:focus {
    box-shadow: 0 0 0 1px var(--warm-gold);
}

/* Hero Response Modal - Semi-transparent to show background */
.hero-response {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(26, 26, 26, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    /* Shows landing page background through blur */
    display: none;
    /* Changed from center to flex-start to allow scrolling */
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;  /* Enable vertical scrolling */
    padding: 2rem 0;  /* Add padding for scroll room */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-response.visible {
    display: flex;
    opacity: 1;
}

.response-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;  /* Changed from margin-top: 50px */
    padding-bottom: 2rem;  /* Extra padding at bottom for button visibility */
}

.response-card {
    background: var(--bg-charcoal);
    border: 1px solid var(--warm-gold);
    padding: 3rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    /* For close button */
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--warm-gold);
}

.trust-reviews {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out 0.3s forwards;
}

/* Wizard Styles */
.wizard-step {
    width: 100%;
    animation: fadeUp 0.5s ease-out;
}

.wizard-step.hidden {
    display: none;
}

.step-title {
    font-size: 2.5rem;
    color: var(--warm-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.step-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.wizard-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-prev {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev:hover {
    border-color: var(--off-white);
    color: var(--off-white);
}

/* Dynamic Form */
.dynamic-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    width: 100%;
}

.dynamic-input input[type="text"],
.dynamic-input select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Translucent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    border-radius: 4px;
}

.dynamic-input input:focus,
.dynamic-input select:focus {
    border-color: var(--warm-gold);
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-group label:hover {
    border-color: var(--warm-gold);
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--warm-gold);
}

/* Photo Upload */
.photo-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-upload-area:hover {
    border-color: var(--warm-gold);
    background: rgba(255, 255, 255, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.link-text {
    color: var(--warm-gold);
    text-decoration: underline;
}

/* Fix Lints */
.review-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari Support */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--off-white);
    font-size: 0.9rem;
    width: fit-content;
}

/* Sections */
.section {
    padding: 2rem 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--off-white);
}

.poetic-text {
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--text-muted);
}

/* Make dream section more compact */
.dream {
    padding: 1.5rem 0;
}

.dream .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Services Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.service-card h3 {
    font-size: 2rem;
    color: var(--warm-gold);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.2rem;
}

/* Trust */
.testimonial {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 2rem;
}

.stars {
    color: var(--warm-gold);
    font-size: 1.5rem;
}

.trust-badge {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* About */
.about p {
    font-size: 1.5rem;
    max-width: 900px;
}

/* Gallery - Minimal placeholders for now */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    background: #333;
    aspect-ratio: 4/3;
    border-radius: 4px;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.nap {
    margin-bottom: 1rem;
    color: var(--off-white);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

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

    .hero-sub {
        font-size: 1.1rem;
    }

    .grid-3,
    .grid-gallery {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Settings UI */
.settings-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.settings-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.settings-modal {
    background: white;
    color: var(--text-dark);
    max-width: 400px;
    text-align: left;
}

.settings-modal h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.settings-modal .input-group {
    margin: 20px 0;
}

.settings-modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
    color: #333;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.secondary-btn {
    background: #ccc;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.secondary-btn:hover {
    background: #bbb;
}

/* ----------------------
   ENHANCED INTAKE STYLES
   ---------------------- */

/* Loading Animation */
.loading-dots span {
    animation: blink 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

/* Emergency Indicators */
.emergency-text {
    color: #ff6b6b;
    font-weight: 600;
}

.result-headline.emergency {
    color: #ff6b6b;
}

/* Photo Tips */
.photo-tips {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.photo-tips .tip {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Photo Counter */
.photo-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Drag Over State */
.photo-upload-area.drag-over {
    border-color: var(--warm-gold);
    background: rgba(212, 160, 23, 0.1);
}

/* Photo Previews */
.preview-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

.photo-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

.remove-photo:hover {
    background: #e74c3c;
}

/* Result Step Styles */
.result-headline {
    font-size: 2rem;
    color: var(--warm-gold);
    margin-bottom: 1.5rem;
}

.estimate-display {
    background: linear-gradient(135deg, rgba(46, 91, 46, 0.3), rgba(212, 160, 23, 0.2));
    border: 1px solid var(--warm-gold);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.estimate-range {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--warm-gold);
}

.estimate-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.result-message {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.result-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.after-hours-notice {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.result-contact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-contact p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.result-contact a {
    color: var(--warm-gold);
    text-decoration: none;
}

.result-contact a:hover {
    text-decoration: underline;
}

.result-nav {
    margin-top: 2rem;
}

.btn-large-cta {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* Input Type Fixes */
.dynamic-input input[type="tel"],
.dynamic-input input[type="email"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    border-radius: 4px;
}

.dynamic-input input[type="tel"]:focus,
.dynamic-input input[type="email"]:focus {
    border-color: var(--warm-gold);
    background: rgba(255, 255, 255, 0.1);
}

/* ----------------------
   CHAT INTERFACE STYLES
   ---------------------- */

.chat-wrapper {
    max-width: 500px;
    width: 95%;
    margin: 0 auto;
}

.chat-container {
    background: var(--bg-charcoal);
    border: 1px solid var(--warm-gold);
    border-radius: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(46, 91, 46, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--off-white);
}

.chat-icon {
    font-size: 1.5rem;
}

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 150px;
    max-height: 40vh;
}

.chat-message {
    display: flex;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 85%;
    padding: 0.875rem 1.25rem;
    border-radius: 18px;
    font-size: 1rem;
    line-height: 1.5;
}

.chat-message.user .message-bubble {
    background: var(--warm-gold);
    color: var(--bg-charcoal);
    border-bottom-right-radius: 4px;
}

.chat-message.ai .message-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
    border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.typing-indicator .message-bubble {
    display: flex;
    gap: 4px;
    padding: 1rem 1.25rem;
}

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

.typing-indicator .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

/* Chat Input */
.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-area.hidden {
    display: none;
}

#chatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 0.75rem 1.25rem;
    color: var(--off-white);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease;
}

#chatInput:focus {
    border-color: var(--warm-gold);
}

#chatInput::placeholder {
    color: var(--text-muted);
}

.send-btn {
    background: var(--warm-gold);
    color: var(--bg-charcoal);
    border: none;
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

/* Photo Section in Chat */
.photo-section {
    padding: 1.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.photo-section.hidden {
    display: none;
}

.photo-section .photo-tips {
    margin-bottom: 1rem;
}

.photo-section .photo-upload-area {
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.photo-section .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
}

/* Result Section in Chat */
.result-section {
    padding: 1.5rem;
    text-align: center;
}

.result-section.hidden {
    display: none;
}

.result-section .btn-primary {
    margin-top: 1.5rem;
}

/* Loading Dots */
.loading-dots span {
    animation: blink 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .chat-container {
        max-height: 90vh;
        border-radius: 0;
    }

    .chat-messages {
        min-height: 250px;
    }

    .message-bubble {
        max-width: 90%;
        font-size: 0.95rem;
    }

    .photo-tips {
        flex-direction: column;
        align-items: center;
    }
}

/* Quick Reply Buttons */
.quick-reply-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-start;
}

.quick-reply-btn {
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid var(--warm-gold);
    color: var(--warm-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background: var(--warm-gold);
    color: var(--bg-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

.quick-reply-btn:active {
    transform: translateY(0);
}