:root {
    --primary-color: #295aa2;
    --secondary-color: #f67f3a;
    --primary-t-color: #212121;

    --section-2-bg-color: #f7f7f7 !important;

    /* FORMS */
    --primary-l-color: rgba(0, 0, 0, 0.5);

    /* BRAND COLORS */
    --color-orange: #f67f3a;
    --color-orange-light: #ff9b63;
    --color-orange-dark: #d8692d;

    --color-blue: #295aa2;
    --color-blue-light: #3e77c7;
    --color-blue-dark: #1f457f;

    /* BASE COLORS */
    --color-bg: #212121;
    --color-bg-card: #2a2a2a;
    --color-bg-panel: #1a1a1a;

    /* TEXT COLORS */
    --text-primary: #c45f28;
    --text-secondary: #193a6a;
    --text-muted: #8a8a8a;

    /* BORDERS */
    --border-light: #303030;

    /* SHADOWS */
    --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.25);

    /* RADIUS & SPACING */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --spacing-xs: 6px;
    --spacing-sm: 10px;
    --spacing-md: 16px;
    --spacing-lg: 22px;
    --spacing-xl: 32px;

    --transition: 0.25s ease-in-out;

    --h1-size: 5em;

    --section-partners-1-image: url("/assets/gsh/images/furnace-installation-bk.webp");
}

h1.title {
    line-height: 0.9em !important;
    margin-bottom: 1em !important;
    margin: 80px 0 0 0 !important;
}

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: currentColor; /* works with Bootstrap icons */
}

.icon-white {
    color: white;
}

.icon-orange {
    color: #f67f3a;
}
.icon-blue {
    color: #295aa2;
}

.intro {
    margin-bottom: 0px;
}

textarea.form-control {
    width: 100%;
    min-height: 60px;
}

.input-wrap {
    position: relative;
}

label {
    color: #666;
}

.input-required {
    position: absolute;
    bottom: 15px; /* adjust if needed */
    right: 5px;
    font-size: 10px;
    color: #999;
    pointer-events: none;
    letter-spacing: 0.5px;
    /* text-transform: uppercase; */
}

.form-control {
    width: 100%;
    height: 50px;
    background: no-repeat;
    box-shadow: none;
    padding: 10px 15px;
    border-color: var(--primary-l-color);
    border-width: 1px;
    /* border-radius: 2px; */
    line-height: 1.2;
}

#verify-message {
    font-size: x-small;
    color: #727272;
}

#verify-code {
    font-size: 1.2em;
    text-align: center;
}

.no-top-margin {
    margin-top: 0px;
}
.reset-chat-link {
    font-size: 10px;
    color: #9aa0a6;
    cursor: pointer;
    user-select: none;
}

.reset-chat-link:hover {
    color: #6c757d;
    text-decoration: underline;
}

.business-number {
    font-size: 14px;
    color: #555;
    margin-top: 6px;
}

/* ============================
   NAVBAR TITLE
   ============================ */
#navbar-title-mobile {
    display: none;
}

/* Tablet + Mobile: show short name */
@media (max-width: 991px) {
    #navbar-title-desktop {
        display: none;
    }
    #navbar-title-mobile {
        display: inline;
    }
}

/* ============================
   HERO BASE
   ============================ */

.custom-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* LAYER 1: PARTICLES */
.custom-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ============================
   LAYER 2: 3-COLUMN MEDIA ROW
   ============================ */

.hero-media-row {
    position: absolute;
    top: 20%; /* adjust vertical position */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* gap: 10px; */
    width: 800px;
    max-width: 90%;
    z-index: 2;
}

.hero-media-col {
    flex: 1 1 33%;
    max-width: 33%;
    display: flex;
    justify-content: center;
}

.hero-media-img,
.hero-media-video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* VIDEO CENTERED PROPERLY */
.hero-media-video {
    border-radius: 6px;
    max-height: 360px;
}

/* Desktop */
.hero .slide-content {
    margin-top: 420px !important;
}
.hero-media-video,
.hero-media-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Or cover, depending on layout */
    transition: opacity 1.5s ease;
}

/* start with video hidden, image visible */
#heroVideo {
    opacity: 0;
}

#heroImage {
    opacity: 1;
}

/* Tablets */
@media (max-width: 992px) {
    .hero .slide-content {
        margin-top: 360px !important;
    }
}
@media (max-width: 660px) {
    body .slider-h-100 {
        height: calc(100vh - 150px);
        margin-bottom: -50px;
    }
    body section.featured:after {
        height: 50px;
        bottom: 25px;
    }
}

/* ============================
   MOBILE RESPONSIVE BEHAVIOR
   ============================ */

/* Mobile */
@media (max-width: 600px) {
    .hero .slide-content {
        margin-top: 20px !important;
    }
    .hero-media-row {
        top: 10%;
        max-width: 90%;
    }
}

.btn-primary {
    background: var(--color-orange);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--color-orange-light);
}
.btn-primary:active {
    background: var(--color-orange-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--color-blue-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    cursor: pointer;
    transition: var(--transition);
}
.btn-ghost:hover {
    color: var(--text-primary);
}

input,
textarea {
    width: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--border-light);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

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

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 2px rgba(246, 127, 58, 0.25);
}
.card {
    background: var(--text-muted);
    padding: 1px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    color: var(--text-primary);
}

.card-flat {
    background: var(--color-bg-panel);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
body {
    /* background: var(--color-bg);
    color: var(--text-primary); */
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3 {
    font-weight: 600;
    color: var(--text-primary);
}

.title {
    color: var(--primary-t-color);
    margin-bottom: 0px;
}

p.disclaimer {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    margin-top: 0px;
    text-align: center;
    white-space: normal;
}

p.disclaimer-small {
    color: var(--text-muted);
    font-size: 0.7em;
    margin-bottom: 5px;
    margin-top: 0px;
    text-align: center;
    white-space: normal;
}

.mt-md {
    margin-top: var(--spacing-md);
}
.mb-md {
    margin-bottom: var(--spacing-md);
}
.p-lg {
    padding: var(--spacing-lg);
}

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

.btn:disabled,
.btn.disabled {
    background-color: #3e77c7 !important;
    /* color: inherit !important; */
}

section.section-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        var(--section-partners-1-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =====================================================
   Ticket / Booking Form – Custom Styling
   ===================================================== */
section.section-ticket {
    background: linear-gradient(
        to bottom left,
        #f97316,
        /* warm orange */ #fb923c,
        /* softer orange */ #fdba74 /* light accent */
    );
}

/* SECTION BACKGROUND (Orange gradient @ 45deg) */
#ticketSection {
    padding: 3rem 3rem;
}

/* CARD */
#ticketSection .card {
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}

/* CARD BODY */
#ticketSection .card-body {
    background: #f5f7fa;
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
}

/* INPUTS & SELECTS */
#ticketSection .form-control,
#ticketSection .form-select {
    background: #ffffff;
    border: 1px solid #d0d7de;
    color: #1f2933;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

/* PLACEHOLDERS */
#ticketSection .form-control::placeholder {
    color: #9aa4af;
}

/* FOCUS STATES */
#ticketSection .form-control:focus,
#ticketSection .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* LABELS */
#ticketSection .form-label {
    color: #4b5563;
    font-weight: 500;
}

/* HELPER TEXT */
#ticketSection .form-text {
    color: #6b7280;
    font-size: 0.85rem;
}

/* CHECKBOX */
#ticketSection .form-check-label {
    color: #374151;
    align-items: center;
}

#ticketSection .form-check-input {
    border-color: #d0d7de;
}

#ticketSection .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

#ticketSection .ticket-consent {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#ticketSection .ticket-consent .form-check-input {
    margin-left: -1em;
    margin-top: -0.2em;
    width: 2rem;
    height: 1.5rem;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Remove focus border / glow */
#ticketSection .ticket-consent .form-check-input:focus {
    outline: none;
    box-shadow: none;
}

#ticketSection .ticket-consent .form-check-label {
    color: #374151;
    line-height: 1.4;
    cursor: pointer;
}

#ticketSection .ticket-consent .form-check-input {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    accent-color: #3b82f6;
}

/* BUTTONS */
#ticketSection .btn-primary {
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
}

#ticketSection .btn-primary:hover {
    background: #2563eb;
}

#ticketSection .btn-outline-secondary {
    border-radius: 8px;
}

/* ALERTS (optional polish) */
#ticketSection .alert {
    border-radius: 8px;
}

#ticketSection h1,
#ticketSection h2,
#ticketSection h3,
#ticketSection h4,
#ticketSection h5 {
    color: #1f2933 !important;
}

/* Mobile */
@media (max-width: 600px) {
    #ticketSection {
        padding: 0.8rem 0.8rem;
    }
    #ticketSection .card-body {
        padding: 0.9rem 1rem;
    }
}

/* ============================
   CHAT CONTAINER
   ============================ */
#chat-container {
    background: #f5f5f5;
    border: 0.4px solid #333333;
    border-radius: 12px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Start hidden */
#chat-container.hidden {
    display: none;
}

/* CHAT OUTPUT: scrollable area */
#chat-output {
    overflow-y: auto;
    padding-right: 8px;
    max-height: 450px;
}

/* Custom scrollbar (optional) */
#chat-output::-webkit-scrollbar {
    width: 8px;
}
#chat-output::-webkit-scrollbar-thumb {
    background: #bcbcbc;
    border-radius: 4px;
}

/* Each message is a vertical stack: label on top, bubble under */
.chat-message {
    display: flex;
    flex-direction: column;
}

/* bot left, user right */
.chat-message.bot {
    align-items: flex-start;
}
.chat-message.user {
    align-items: flex-end;
}

/* This wrapper shrinks to content, but won't exceed 80% */
.chat-bubble-wrap {
    display: inline-flex; /* shrink-to-fit width */
    flex-direction: column;
    align-items: stretch; /* time aligns with bubble width */
    max-width: 70%; /* cap bubble width */
}

/* Ensure long words/URLs don't overflow */
.chat-text {
    overflow-wrap: anywhere; /* great for long URLs */
    word-break: break-word;
}

/* Label sits above the bubble */
.chat-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    margin-bottom: 0px;
    opacity: 0.7;
    color: #999999;
    padding: 0 0 0 10px;
}

/* Optional: right-align the user label text itself */
.chat-message.user .chat-label {
    text-align: right;
    padding: 0 10px 0px 0;
    width: 70%; /* match bubble max-width if you want */
    max-width: 85%;
}
/* Message bubble */
.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    width: 100%;
    line-height: 1.4;
}

.chat-bubble-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch; /* force children to full width */
    max-width: 70%; /* cap width */
}

/* Label at top of bubble */
.chat-label {
    display: block;
    font-size: 0.7rem; /* ~xx-small */
    /* text-transform: uppercase; */
    letter-spacing: 0.03em;
    margin-bottom: 4px;
    opacity: 0.7;
}

#chat-input {
    height: 60px;
    resize: none;
    padding-top: 20px;
}

/* Bot bubble */
.chat-bot {
    background: #d8ecff;
    color: #043b63;
}

/* User bubble */
.chat-user {
    background: #ffd8b0;
    color: #553100;
    text-align: right;
}

.chat-text {
    white-space: pre-wrap;
}
/* While thinking: keep it on a single line */
.chat-text.thinking {
    white-space: nowrap;
}

.thinking-width {
    width: 57px;
}

.chat-actions {
    max-width: 320px;
}

.chat-bot-message .btn {
    font-size: 0.95rem;
}

.chat-time {
    font-size: 0.72rem;
    opacity: 0.55;
    margin-top: 2px;
    display: block;
    user-select: none;
    color: #888;
}

.chat-bot-time {
    text-align: right;
    margin-right: 10px;
}

.chat-user-time {
    text-align: left;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .chat-bubble-wrap {
        width: 95%;
    }
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 1em;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    animation: typing-bounce 1s infinite ease-in-out;
}

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

@keyframes typing-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-2px);
    }
}
