/* Voice Agent Demo Styles */

/* ===== Warm Coral Theme ===== */
:root {
    --theme-primary: #f97316;
    --theme-secondary: #dc2626;
    --theme-gradient-start: #f97316;
    --theme-gradient-end: #dc2626;
    --theme-gradient-start-hover: #ea580c;
    --theme-gradient-end-hover: #b91c1c;
    --theme-accent: #06b6d4;
    --theme-accent-dark: #0891b2;
    --theme-border-light: #fed7aa;
    --theme-bg-subtle: #fff7ed;
}

/* Smooth transitions */
body,
.hero-voice,
.explanation-card,
.explanation-card i,
.benefit-card,
.benefit-card i,
.industry-card,
.industry-card i,
.demo-button,
.start-btn,
.cta-button {
    transition: background 0.35s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== SVG Image Containers ===== */
.explanation-visual {
    margin-top: 1.5rem;
    text-align: center;
}

.explanation-visual img {
    max-width: 220px;
    height: auto;
    display: inline-block;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.workflow-diagram-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.workflow-diagram-wrapper img {
    max-width: 100%;
    height: auto;
}

/* ===== Hero ===== */
.hero-voice {
    /* background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%); */
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-voice h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-voice p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}
.hero-voice {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url("/assets/img/officePhone.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.hero-voice .hero-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: background 0.5s ease;
}
.hero-voice .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    text-align: left;
    transition: all 0.5s ease;
    background-color: #000000b2;
    border-radius: 10px;
    border: 1px black;
}

.hero-voice .hero-content:hover{
    box-shadow: 0 0 100px white;
    border-radius: 10px;
    transition: all 0.5s ease;
}
.hero-voice .hero-text {
    flex: 1;
    margin: 0 10px;
}
.hero-voice .hero-text h1 {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    -webkit-text-fill-color: #fff0;
    -webkit-text-stroke: 2px white;
}
.hero-voice .hero-text p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 550px;
    line-height: 1.7;
}
.hero-voice .hero-graphic {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
}
.hero-voice .hero-graphic img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.2));
    display: none;
}
.hero-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-badge i { font-size: 0.75rem; }

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

/* Intro Section */
.intro-section {
    padding: 4rem 0;
}

.intro-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.explanation-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    text-align: center;
}

.explanation-card i {
    font-size: 3rem;
    color: var(--theme-primary);
    margin-bottom: 1rem;
}

.explanation-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.explanation-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.example-box {
    background: #f8f9fa;
    border-left: 4px solid var(--theme-primary);
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
    border-radius: 0 8px 8px 0;
}

.example-box strong {
    color: var(--theme-primary);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--theme-primary);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Workflow Section */
.workflow-section {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
}

.workflow-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.workflow-item {
    text-align: center;
}

.workflow-item i {
    font-size: 2rem;
    color: var(--theme-primary);
    margin-bottom: 0.75rem;
}

.workflow-item h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.workflow-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    background: white;
}

.demo-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.demo-section > .container > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.industry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.industry-card i {
    font-size: 3rem;
    color: var(--theme-primary);
    margin-bottom: 1rem;
}

.industry-card h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.industry-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.demo-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--theme-primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.demo-button:hover:not(:disabled) {
    background: var(--theme-secondary);
}

.demo-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Demo Page Layout */
.demo-page {
    padding: 2rem 0;
}

/* Mobile-first: voice demo on top */
.demo-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 901px) {
    .demo-layout {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }
}

.business-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (min-width: 901px) {
    .business-card {
        position: sticky;
        top: 100px;
        height: fit-content;
        grid-column: 2;
        grid-row: 1;
    }

    .voice-demo-container {
        grid-column: 1;
        grid-row: 1;
    }
}

.business-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.business-logo i {
    font-size: 2.5rem;
    color: white;
}

.business-card h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.business-tagline {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.business-info {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-item i {
    width: 24px;
    color: var(--theme-primary);
    margin-right: 0.75rem;
    margin-top: 2px;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    color: #1a1a1a;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.info-item span {
    color: #666;
    font-size: 0.9rem;
}

.business-hours h4 {
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.hours-list {
    font-size: 0.85rem;
    color: #666;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #eee;
}

/* Featured Listings (Real Estate) */
.featured-listings {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.featured-listings h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.listing-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.listing-item .price {
    color: var(--theme-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.listing-item .address {
    color: #1a1a1a;
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

.listing-item .details {
    color: #666;
    font-size: 0.8rem;
}

/* Voice Demo Container */
.voice-demo-container {
    padding: 2rem;
}

.voice-demo-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.voice-demo-section h2 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.voice-demo-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Demo Controls */
.demo-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.voice-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.voice-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.start-btn {
    background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end));
    color: white;
}

.start-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--theme-gradient-start-hover), var(--theme-gradient-end-hover));
}

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

.stop-btn:hover:not(:disabled) {
    background: #c82333;
}

.status-indicator {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #6c757d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator.active {
    border-left-color: #28a745;
    background: #d4edda;
}

.status-indicator.listening {
    border-left-color: var(--theme-accent);
    background: #d1ecf1;
}

.status-indicator.speaking {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.status-indicator.error {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
}

.status-indicator.active .status-dot {
    background: #28a745;
    animation: pulse 1.5s infinite;
}

.status-indicator.listening .status-dot {
    background: var(--theme-accent);
    animation: pulse 1s infinite;
}

.status-indicator.speaking .status-dot {
    background: #ffc107;
    animation: pulse 0.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Conversation Box */
.conversation-box {
    background: #f8f9fa;
    border: 2px solid #222;
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 280px;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== Text Chat Input ===== */
.chat-input-container {
    display: flex;
    border: 2px solid #222;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.chat-input-container input {
    flex: 1;
    border: none;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    outline: none;
    background: #fff;
    font-family: inherit;
    color: #1a1a1a;
}

.chat-input-container input::placeholder {
    color: #666;
    font-size: 0.95rem;
}

.chat-input-container input:focus {
    background: #fffaf0;
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--theme-gradient-start, #f97316), var(--theme-gradient-end, #dc2626));
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
}

.chat-send-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chat-input-container input:disabled {
    background: #f9f9f9;
    cursor: not-allowed;
}

/* Typing indicator */
.typing-indicator {
    padding: 0.5rem 1rem;
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Chat mode toggle hint */
.chat-mode-hint {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #999;
}

.chat-mode-hint i {
    margin: 0 0.25rem;
}

.welcome-message {
    text-align: center;
    color: #666;
    padding: 1rem;
}

.welcome-message h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.welcome-message ul {
    text-align: left;
    display: inline-block;
    margin: 1rem 0;
}

.welcome-message li {
    margin-bottom: 0.5rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 85%;
}

.message.ai {
    background: #e8f4f8;
    border-left: 3px solid var(--theme-accent);
    margin-right: auto;
}

.message.user {
    background: #e3f2fd;
    border-left: 3px solid var(--theme-accent-dark);
    margin-left: auto;
}

.message.system {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    text-align: center;
    max-width: 100%;
    font-size: 0.9rem;
}

.message.error {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
    color: #721c24;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.message-header strong {
    color: #333;
}

.message-header small {
    color: #999;
}

/* Use Cases Section */
.use-cases-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.use-cases-section h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.use-case-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.use-case-item i {
    color: var(--theme-primary);
    font-size: 1.2rem;
}

.use-case-item span {
    color: #333;
    font-size: 0.9rem;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--theme-secondary);
}

/* ===== Shared Tab System (all industry demo pages) ===== */
.tab-container {
    margin-top: 1.5rem;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-btn i {
    font-size: 0.9rem;
}

.tab-btn:hover {
    background: #eef0f5;
    color: var(--theme-primary);
}

.tab-btn.active {
    background: white;
    color: var(--theme-primary);
    border: 2px solid #e0e0e0;
    border-bottom-color: white;
    margin-bottom: -2px;
}

.tab-content {
    display: none;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

@media (max-width: 450px) {
    .tab-nav { gap: 0; }
    .tab-btn { padding: 0.6rem 0.5rem; font-size: 0.7rem; }
    .tab-btn span { display: none; }
}

/* Tab overrides for theme B/C */
.tab-btn.active {
    color: var(--theme-primary) !important;
}

.tab-btn:hover {
    color: var(--theme-primary) !important;
}

.fee-item .price,
.price-item .price {
    color: var(--theme-primary) !important;
}

/* ===== Theme-specific accent overrides ===== */
.status-indicator.listening {
    border-left-color: var(--theme-accent);
    background: #cffafe;
}

.status-indicator.listening .status-dot {
    background: var(--theme-accent);
}

.message.ai {
    border-left-color: var(--theme-accent);
}

.message.user {
    border-left-color: var(--theme-accent-dark);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--theme-bg-subtle, #fff7ed);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--theme-primary, #f97316);
}

.cta-section p {
    color: #555;
    margin-bottom: 2rem;
}

.cta-section .cta-button {
    background: linear-gradient(135deg, var(--theme-gradient-start, #f97316), var(--theme-gradient-end, #dc2626));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.cta-section .cta-visual img {
    max-width: 220px;
    height: auto;
    display: block;
}

.cta-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, var(--theme-gradient-start-hover), var(--theme-gradient-end-hover));
}

/* Responsive */
@media (max-width: 900px) {
    .demo-layout {
        grid-template-columns: 1fr;
    }

    .business-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-voice h1 {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

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

    .voice-btn {
        width: 100%;
        justify-content: center;
    }

    header nav {
        position: relative;
    }

    /* Mobile nav: show hamburger, hide links by default */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 2px solid var(--theme-border-light, #fed7aa);
        padding: 0.5rem 0;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

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

    .nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }
}

/* ===== Hover Effects ===== */
.industry-card:hover {
    box-shadow: 0 10px 30px rgba(249,115,22,0.2);
    border: 1px solid rgba(220,38,38,0.2);
}

.demo-button:not(:disabled):hover {
    background: linear-gradient(135deg, #ea580c, #b91c1c) !important;
}

.start-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #ea580c, #b91c1c) !important;
}

.cta-button:hover {
    background: linear-gradient(135deg, #ea580c, #b91c1c) !important;
}

.use-case-item i,
.explanation-card i,
.benefit-card i,
.industry-card i,
.info-item i {
    transition: color 0.3s ease !important;
}

.industry-card:hover i {
    color: #dc2626 !important;
}

.benefit-card:hover i {
    color: #dc2626 !important;
}

.use-case-item:hover i {
    color: #dc2626 !important;
}

/* Verification modal CSS is now in styles.css (shared) */
