/* Chat FAQ Section - Fixed version */

/* Chat FAQ Section with consistent styling and gradient to white */
.chat-faq-section {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Enhanced background pattern matching homepage CTA */
.chat-faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(54, 135, 56, 0.1) 0%, transparent 50%), 
        radial-gradient(circle at 75% 75%, rgba(108, 185, 191, 0.1) 0%, transparent 50%), 
        radial-gradient(circle at 25% 75%, rgba(0, 148, 193, 0.08) 0%, transparent 50%), 
        radial-gradient(circle at 75% 25%, rgba(226, 144, 0, 0.08) 0%, transparent 50%);
    background-size: 400px 400px;
    animation: pattern-float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes pattern-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}


/* Chat Container - fixed height to prevent jumping */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    min-height: 600px; /* Prevents jumping during animation */
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Message styling */
.chat-message {
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-smooth);
}

.chat-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-message.question {
    justify-content: flex-start;
    margin-right: 20%;
}

.chat-message.answer {
    justify-content: flex-end;
    margin-left: 20%;
}

/* Message bubbles with angled corners */
.message-bubble {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 100%;
    position: relative;
    word-wrap: break-word;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s var(--ease-smooth);
}

/* Question bubbles - light gray */
.chat-message.question .message-bubble {
    background: #f8fafc;
    color: var(--light-text);
    border-radius: 18px 18px 18px 4px;
    border: 1px solid #e2e8f0;
}

/* Answer bubbles - subtle brand green */
.chat-message.answer .message-bubble {
    background: #48bb78; /* Subtle green that complements brand */
    color: white;
    border-radius: 18px 18px 4px 18px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    justify-content: flex-end;
    margin-left: 20%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-smooth);
}

.typing-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.typing-bubble {
    background: #48bb78; /* Match answer bubble green */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 18px 18px 4px 18px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0ms; }
.typing-dot:nth-child(2) { animation-delay: 200ms; }
.typing-dot:nth-child(3) { animation-delay: 400ms; }

@keyframes typing {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Hover effects */
.message-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chat-message.answer .message-bubble:hover {
    background: #38a169; /* Darker green on hover */
}

/* Hidden initially */
.chat-message {
    display: none;
}

.chat-message.show {
    display: flex;
}

/* Smooth section transition to white */
.chat-faq-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, white 100%);
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-faq-section {
        padding: 80px 0;
    }

    .chat-container {
        padding: 0 1rem;
        min-height: 500px;
    }

    .chat-message.question {
        margin-right: 10%;
    }

    .chat-message.answer,
    .typing-indicator {
        margin-left: 10%;
    }

    .message-bubble {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 16px 16px 16px 3px;
    }

    .chat-message.answer .message-bubble,
    .typing-bubble {
        border-radius: 16px 16px 3px 16px;
    }
}

@media (max-width: 480px) {
    .chat-message.question {
        margin-right: 5%;
    }

    .chat-message.answer,
    .typing-indicator {
        margin-left: 5%;
    }

    .message-bubble {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .chat-container {
        min-height: 450px;
    }
}









/* Book Demo Page - Extends Homepage Styles */
/* Only adds demo-specific components, reuses everything else from styles.css */



/* FLOATING LABEL FIXES - Always visible and properly positioned */

/* Default floating label state - always visible above field */
.floating-label {
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    transform: translateY(0);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.3s var(--ease-smooth);
    z-index: 25;
    background: rgba(10, 11, 15, 0.9);
    padding: 0 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Textarea label positioning */
.message-field .floating-label {
    top: 0.5rem;
}

/* Focus state - brighter color */
.form-group-horizontal input:focus + .floating-label,
.form-group-horizontal select:focus + .floating-label,
.form-group-horizontal textarea:focus + .floating-label {
    color: var(--brand-turquoise);
}

/* Input field adjustments - consistent padding for label space */
.form-group-horizontal input,
.form-group-horizontal select,
.form-group-horizontal textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 58px;
}

/* Hide browser placeholders completely since we use floating labels */
.form-group-horizontal input::placeholder,
.form-group-horizontal textarea::placeholder {
    color: transparent;
    opacity: 0;
}

/* Select field specific styling */
.form-group-horizontal select {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    appearance: none;
    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='%23ffffff' opacity='0.6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* When select has a real value selected */
.form-group-horizontal select.has-value {
    color: white;
}

/* Select when focused */
.form-group-horizontal select:focus {
    color: white;
}

/* Textarea larger height */
.form-group-horizontal textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 1.75rem;
}

/* Remove all old placeholder-based label logic */
.input-wrapper.active .floating-label {
    /* Label is always in floating position now - no changes needed */
    color: rgba(255, 255, 255, 0.7);
}

.input-wrapper.active select + .floating-label,
.input-wrapper.active input + .floating-label,
.input-wrapper.active textarea + .floating-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Focus States */
.form-group-horizontal input:focus,
.form-group-horizontal select:focus,
.form-group-horizontal textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(108, 191, 191, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Required asterisk */
.required {
    color: #ff6b6b;
    margin-left: 2px;
}

/* Error and Success states remain the same */
.form-group-horizontal.error input,
.form-group-horizontal.error select,
.form-group-horizontal.error textarea {
    border-color: rgba(255, 107, 107, 0.8);
    background: rgba(255, 107, 107, 0.05);
    box-shadow: 
        0 0 0 4px rgba(255, 107, 107, 0.1),
        0 4px 16px rgba(255, 107, 107, 0.1);
}

.form-group-horizontal.error .floating-label {
    color: #ff6b6b !important;
}

.form-group-horizontal.success input,
.form-group-horizontal.success select,
.form-group-horizontal.success textarea {
    border-color: rgba(54, 135, 56, 0.8);
    background: rgba(54, 135, 56, 0.05);
    box-shadow: 
        0 0 0 4px rgba(54, 135, 56, 0.1),
        0 4px 16px rgba(54, 135, 56, 0.1);
}

.form-group-horizontal.success .floating-label {
    color: var(--owlfie-green) !important;
}



.hero-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(2.5rem, 4.5vw, 3.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--dark-text) !important;
    letter-spacing: -0.02em !important;
    margin: 1rem 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    
    /* Start hidden but keep space in layout */
    opacity: 0 !important;
    transform: translateY(30px) scale(0.95) !important;
    filter: blur(3px) !important;
    transition: all 1.2s var(--ease-smooth) !important;
    /* visibility: hidden !important; */ /* REMOVE THIS LINE */
}

/* Animation state */
.hero-title.animate-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0px) !important;
    /* visibility: visible !important; */ /* REMOVE THIS LINE */
}

/* Do the same for other hero elements */
.hero-badge,
.papyrus-subtitle,
.hero-description {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.8s var(--ease-smooth) !important;
    /* visibility: hidden !important; */ /* REMOVE THIS LINE */
}

.hero-badge.animate-in,
.papyrus-subtitle.animate-in,
.hero-description.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    /* visibility: visible !important; */ /* REMOVE THIS LINE */
}

/* Remove black line issue at hero bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.7) 70%,
        var(--light-bg) 100%);
    z-index: 2;
}

.demo-hero-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    margin-top: 80px; 
    padding-top: 2rem;
}

/* Adjust for different screen sizes */
@media (max-width: 1024px) {
    .demo-hero-single {
        margin-top: 100px;
        gap: 2.5rem;
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .demo-hero-single {
        margin-top: 90px;
        gap: 2rem;
        padding: 1rem 0;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .demo-hero-single {
        margin-top: 80px;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
}

.hero-text-centered {
    max-width: 900px;
    z-index: 15;
    position: relative;
}

.papyrus-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    z-index: 15 !important;
    position: relative !important;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

/* Style product name like homepage */
.papyrus-subtitle .brand-name {
    color: var(--owlfie-green) !important;
    font-weight: 600 !important;
}

.hero-description {
    color: rgba(255, 255, 255, 0.85) !important;
    z-index: 15 !important;
    position: relative !important;
    font-size: clamp(1rem, 2vw, 1.15rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-badge {
    z-index: 10 !important;
    position: relative !important;
    margin-bottom: 2rem !important;
}

/* Horizontal highlights */
.demo-highlights-horizontal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    z-index: 15;
    position: relative;
}

.demo-highlights-horizontal .demo-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s var(--ease-smooth);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.demo-highlights-horizontal .demo-highlight:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.demo-highlights-horizontal .demo-highlight i {
    color: var(--owlfie-green);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Modern Form Container */
.form-container-horizontal {
    position: relative;
    z-index: 10;
 isolation: isolate;
}

.demo-form-card-horizontal {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s var(--ease-smooth);
    overflow: hidden;
}

.demo-form-card-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.demo-form-card-horizontal:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Form Grid Layout */
.demo-form-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
    align-items: start;
    position: relative;
    z-index: 10;
    transition: all 0.5s var(--ease-smooth);
}

/* Modern Input Wrapper with Floating Labels */
.form-group-horizontal {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    margin-bottom: 0.75rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 0;
    transition: transform 0.2s var(--ease-smooth);
}

.input-wrapper:focus-within {
    transform: scale(1.02);
    z-index: 30;
}


.input-wrapper.active select {
    color: white;
}

/* Ensure disabled placeholder option is styled correctly */
.form-group-horizontal select option[disabled] {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Final cleanup for select field display */

/* When select is active (has floating label), hide any remaining placeholder text */
.input-wrapper.active select {
    color: white !important;
}

/* Ensure the select shows proper placeholder state when empty */
.form-group-horizontal select[value=""] {
    color: rgba(255, 255, 255, 0.6);
}

/* When select has focus, always show white text */
.form-group-horizontal select:focus {
    color: white !important;
}


/* Remove artifacts and fix bottom line issues */
.demo-form-horizontal::after,
.demo-form-card-horizontal::after {
    display: none;
}

/* Ensure no extra borders or lines appear */
.form-container-horizontal::after {
    display: none;
}

/* Required asterisk styling */
.required {
    color: #ff6b6b;
    margin-left: 2px;
}

/* Remove Input Border Animation - was creating unwanted bottom borders */
.input-border {
    display: none; /* Remove the bottom border animation entirely */
}

/* Focus States - simplified without bottom border animation */
.form-group-horizontal input:focus,
.form-group-horizontal select:focus,
.form-group-horizontal textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(108, 191, 191, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Select Options Styling */
.form-group-horizontal select option {
    background: #1a1a1a;
    color: white;
    padding: 0.5rem;
}

.form-group-horizontal select optgroup {
    background: #2a2a2a;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Message field spans full width */
.message-field {
    grid-column: 1 / -1;
}

/* Error States - simplified without bottom border */
.form-group-horizontal.error {
    margin-bottom: 2.5rem; /* Space for error message */
}

.form-group-horizontal.error input,
.form-group-horizontal.error select,
.form-group-horizontal.error textarea {
    border-color: rgba(255, 107, 107, 0.8);
    background: rgba(255, 107, 107, 0.05);
    box-shadow: 
        0 0 0 4px rgba(255, 107, 107, 0.1),
        0 4px 16px rgba(255, 107, 107, 0.1);
}

.form-group-horizontal.error .floating-label {
    color: #ff6b6b !important;
}

/* Success States - simplified without bottom border */
.form-group-horizontal.success input,
.form-group-horizontal.success select,
.form-group-horizontal.success textarea {
    border-color: rgba(54, 135, 56, 0.8);
    background: rgba(54, 135, 56, 0.05);
    box-shadow: 
        0 0 0 4px rgba(54, 135, 56, 0.1),
        0 4px 16px rgba(54, 135, 56, 0.1);
}

.form-group-horizontal.success .floating-label {
    color: var(--owlfie-green) !important;
}

/* Smooth Error Messages - No Jump */
.error-message {
    color: rgba(255, 107, 107, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: error-slide-in 0.3s var(--ease-smooth) forwards;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.1);
}

@keyframes error-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message::before {
    content: '⚠';
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Submit Button Group */
.submit-group {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
}

/* Modern Gradient Submit Button */
.demo-submit-btn {
    background: var(--gradient-brand);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 25;
    box-shadow: 
        0 8px 24px rgba(54, 135, 56, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.demo-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.demo-submit-btn:hover::before {
    left: 100%;
}

.demo-submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(54, 135, 56, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    background: linear-gradient(135deg, #4a9f52 0%, #8cc9ce 35%, #2ba8c9 100%);
}

.demo-submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.demo-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading states */
.btn-text,
.btn-loading {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-loading {
    display: none;
}

.demo-submit-btn.loading .btn-text {
    display: none;
}

.demo-submit-btn.loading .btn-loading {
    display: inline-flex;
}

.demo-submit-btn.loading {
    pointer-events: none;
}

/* Modern Success Message - Inside Form - Fixed positioning to prevent layout shift */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    z-index: 50;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s var(--ease-smooth);
    /* Prevent any layout shifts */
    position: absolute !important;
    contain: layout style paint;
    will-change: opacity, transform;
}

/* Ensure form container maintains its position and size */
.demo-form-card-horizontal {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s var(--ease-smooth);
    overflow: hidden;
    /* Prevent container from changing dimensions */
    min-height: 400px;
    contain: layout;
}

/* Lock form container size when success is shown */
.demo-form-card-horizontal.success-shown {
    transform: none !important;
    height: auto !important;
    min-height: 400px !important;
}

/* Restore hero bottom transition to match homepage */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.7) 70%,
        var(--light-bg) 100%);
    z-index: 2;
}

.success-message.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.success-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: var(--owlfie-green);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(54, 135, 56, 0.3));
}

.success-message h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.success-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Error Notification (for server errors) */
.error-notification {
    background: rgba(255, 107, 107, 0.1);
    color: rgba(255, 107, 107, 0.95);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.1);
    animation: error-notification-slide-in 0.4s var(--ease-smooth);
}

@keyframes error-notification-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-notification i {
    color: rgba(255, 107, 107, 0.9);
    margin-right: 0.5rem;
}

/* Form Animation States */
.demo-form-horizontal.form-hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.demo-form-horizontal.form-success {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* What to Expect section - reuses existing diff-card styles */
.expect-section {
    background: var(--light-bg);
    padding: 120px 0;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.expect-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-smooth);
}

.expect-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Customer logos - extends existing patterns with hover effects */
.trusted-section {
    background: var(--light-surface);
    padding: 100px 0;
}

.customer-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

/* Customer logos - no borders, bigger size */
.customer-logo-item {
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-smooth);
    min-height: 125px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.customer-logo-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.customer-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s var(--ease-smooth);
}

.customer-logo-item:hover {
    transform: translateY(-4px);
}

.customer-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Contact regions - extends value-card styles */
.contact-regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.contact-region-card {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-smooth);
}

.contact-region-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-region-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-region-details p {
    color: var(--light-text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-region-details p:first-child {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.contact-region-details i {
    color: var(--owlfie-green);
    margin-right: 0.5rem;
    width: 16px;
}

/* FAQ Mention - simple section */
.faq-mention-section {
    padding: 3rem 0;
    background: var(--light-surface);
    text-align: center;
}

.faq-mention-text {
    color: var(--light-text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

.faq-mention-text a {
    color: var(--owlfie-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--ease-smooth);
}

.faq-mention-text a:hover {
    text-decoration: underline;
    color: var(--brand-turquoise);
}

/* Fade-in animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-smooth);
}

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

/* Navigation modifications for demo page */
.nav-demo-btn.current-page {
    background: var(--gradient-brand);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-02);
    opacity: 0.8;
    cursor: default;
}

.mobile-nav-link.current-page {
    color: var(--owlfie-green);
    background: rgba(54, 135, 56, 0.1);
    cursor: default;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .demo-form-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1.25rem;
    }
    
    .demo-form-card-horizontal {
        padding: 2rem;
    }
    
    .demo-hero-single {
        gap: 2.5rem;
        padding: 4rem 0;
    }
    
    .demo-highlights-horizontal {
        gap: 1rem;
    }
    
    .demo-highlights-horizontal .demo-highlight {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .demo-form-horizontal {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .demo-form-card-horizontal {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .form-group-horizontal input,
    .form-group-horizontal select,
    .form-group-horizontal textarea {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .demo-submit-btn {
        width: 100%;
        max-width: none;
        padding: 1.25rem;
        font-size: 1.05rem;
    }
    
    .success-message h3 {
        font-size: 1.5rem;
    }
    
    .success-icon i {
        font-size: 3rem;
    }
    
    .success-content {
        padding: 1.5rem;
    }
    
    /* Adjust error message spacing on mobile */
    .form-group-horizontal.error {
        margin-bottom: 2.25rem;
    }
    
    .hero-title {
        font-size: clamp(1.875rem, 4vw, 3rem) !important;
    }
    
    .papyrus-subtitle {
        font-size: clamp(1rem, 2vw, 1.2rem) !important;
    }
    
    .hero-description {
        font-size: clamp(0.95rem, 1.8vw, 1.05rem) !important;
    }
    
    .demo-highlights-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .demo-highlights-horizontal .demo-highlight {
        width: fit-content;
    }
    
    .demo-hero-single {
        gap: 2rem;
        padding: 3rem 0;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .demo-form-card-horizontal {
        padding: 1.25rem;
        margin: 0.5rem;
    }
    
    .form-group-horizontal input,
    .form-group-horizontal select,
    .form-group-horizontal textarea {
        padding: 1.125rem 0.875rem 0.675rem;
        font-size: 16px;
    }
    
    .floating-label {
        font-size: 0.95rem;
        left: 0.875rem;
    }
    
    .input-wrapper.active .floating-label,
    .form-group-horizontal input:focus + .floating-label,
    .form-group-horizontal select:focus + .floating-label,
    .form-group-horizontal textarea:focus + .floating-label,
    .form-group-horizontal input:not(:placeholder-shown) + .floating-label,
    .form-group-horizontal select:not([value=""]) + .floating-label,
    .form-group-horizontal textarea:not(:placeholder-shown) + .floating-label {
        left: 0.625rem;
        font-size: 0.7rem;
    }
    
    .demo-submit-btn {
        padding: 1.125rem;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.625rem, 4vw, 2.5rem) !important;
    }
    
    .demo-hero-single {
        gap: 1.5rem;
        padding: 2rem 0;
    }


/* ============================================
   MOBILE NAVIGATION FIX - "Booking Demo" Overflow
   ============================================ */

/* Desktop - full text visible */
.nav-demo-btn.current-page {
    background: var(--gradient-brand);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-02);
    opacity: 0.8;
    cursor: default;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--ease-smooth);
}

/* Tablet - slightly smaller */
@media (max-width: 1150px) {
    .nav-demo-btn.current-page {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
        gap: 0.4rem;
    }
}

/* Large mobile - even smaller */
@media (max-width: 1024px) {
    .nav-demo-btn.current-page {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

/* Small mobile - icon only, no text */
@media (max-width: 768px) {
    .nav-demo-btn.current-page {
        padding: 0.75rem;
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 50%;
        gap: 0;
    }
    
    .nav-demo-btn.current-page span {
        display: none;
    }
    
    .nav-demo-btn.current-page i {
        font-size: 1.1rem;
        margin: 0;
    }
}

/* Very small screens - slightly smaller icon button */
@media (max-width: 380px) {
    .nav-container {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .nav-owlfie {
        width: 32px;
        height: 32px;
    }
    
}

