﻿/*
    Green for dark mode:  #4DC5B3
    Orange for dark mode: #f8a71e
    Red for dark mode: #e91e63
*/
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px; /* was 16px */
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
  position: relative;
  height: 100%;
  margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.pan-menubar {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    height: 100%;
}

.pan-body {
    flex: 1 1 auto;
    min-width: 0;
/*    width: 100%;
    height: 100%;
*/}

.pan-question-heading {
    --bs-alert-padding: 0;
    --bs-alert-margin-bottom: 0;
}

.main-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.sidebar {
    width: 55px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

.sidebar i {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.page-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

header, footer {
    background-color: #363640;
    color: white;
    flex: 0 0 auto;
}

.footer {
    position: static !important;
}

.child-page-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tab-content-fill {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* DataExtreme Date Range (start) */

.demo-container {
    height: 690px;
}

.dx-field {
    padding: 8px;
}

.selected-days-wrapper {
    font-size: 12px;
    opacity: 0.5;
}

.multiline-label {
    padding-top: 0;
}

/* Data Extreme Date Range (end) */

/* DevExtreme Tabs */

.widget-container {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: 100%;
    min-width: 200px;
    overflow: visible;
    padding-top: 20px;
}

.widget-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
/*    gap: 80px;
*/    width: 100%;
}

.widget-wrapper-vertical {
    width: 100%;
    flex-direction: row;
    align-items: center;
}

/* Custom Grid Handling */

.pan-expanded-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pan-expanded-grid .grid {
    flex: 1 1 auto;
    min-height: 0;
}

.grid-panel,
.grid-actions {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.wrap-column-150 {
    white-space: normal !important; /* Allow wrapping */
    word-wrap: break-word; /* Older support */
    max-width: 150px;
}

.wrap-column-200 {
    white-space: normal !important; /* Allow wrapping */
    word-wrap: break-word; /* Older support */
    max-width: 200px; /* Enforce max width */
}

.dx-datagrid .wrap-text {
    white-space: pre-wrap !important;
    word-break: break-word;
    line-height: 1.35;
}

/* Summary Section */

.pan-summary-section div.row {
    background-color: #2A2A2D;
    border-style: solid;
    border-width: thin;
    border-color: Gray;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}

.pan-summary-section div.row:last-of-type {
    border-bottom: solid thin;
}

.pan-summary-section .value-cell {
    color: #03A9F4;
/*    color: #66C798;*/
    padding-left: 0px;
}

/* Home Page Card Container */

.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* added */
}

.card {
    background-color: #363640 /* #1a2c45*/;
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    max-width: 100%; /* added */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.card i {
    font-size: 30px;
    color: #f8a71e;
    margin-bottom: 10px;
}

.card h3 {
    color: #f8a71e;
    margin: 10px 0 10px;
}

.card p {
    color: #ffffff;
    line-height: 1.4;
}

/* On phones, stack vertically and fill most of the width */
@media (max-width: 768px) {
    .card-container {
        justify-content: stretch; /* optional */
    }

    .card {
        width: 100%; /* stack */
        max-width: 420px; /* optional: keeps it from being huge on big phones */
        margin: 0 auto; /* centers the card when max-width applies */
    }
}

/* Home Page Hero Paragraph */

.hero-paragraph {
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.6;
}

/* Responsive hero logo */

.hero-logo {
    width: 70%;
    max-width: 500px;
    height: auto;
}

/* Full-screen image reveal section */
.image-reveal {
    position: relative;
    min-height: 100vh;
    background-image: var(--reveal-image, url('/img/home_interior_1.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Fade the top of the image from your page background into the photo */
.image-reveal::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 220px; /* fade length */
    background: linear-gradient( to bottom, rgba(33, 37, 41, 1), /* match your page background */
    rgba(33, 37, 41, 0) );
    pointer-events: none;
}

/* Overlay content (your cards) sits above the image */
.image-reveal__overlay {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: right;
    padding: 40px 20px;
}

/* Optional: make overlay cards easier to read on bright photos */
.image-reveal__overlay .card {
    backdrop-filter: blur(6px);
    background-color: rgba(54, 54, 64, 0.85);
}

.image-reveal__overlay-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
}

.date-overlay-card {
    background-color: rgba(54, 54, 64, 0.85);
    color: #4DC5B3;
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    align-self: flex-start;
}

/* Keep layout friendly on smaller screens */
@media (max-width: 768px) {
    .image-reveal__overlay-row {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* Home page accordion */

.feature-accordion {
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    margin-top: 60px;
    text-align: left;
    padding: 0 16px;
    box-sizing: border-box;
}

.feature-accordion-button {
    background-color: #212529;
    font-weight: bold;
    color: #ccc;
    box-shadow: none;
    border: none;
}

.feature-accordion-button:not(.collapsed)::after {
    transform: rotate(45deg);
}

.feature-accordion-button::after {
    content: "+";
    font-size: 20px;
    color: #999;
    transform: none;
    background-image: none;
}

.feature-accordion-button:not(.collapsed) {
    color: #f8a71e;
    border-bottom: 2px solid #f8a71e;
}

.feature-accordion-body {
    color: #ccc;
    min-height: 60px;
    margin-bottom: 20px;
}

.feature-accordion-item {
    border: none;
    /*    border-bottom: 1px solid #eee; */
}

.feature-accordion-item:first-child .accordion-button {
    color: #4DC5B3;
    min-height: 80px;
}

.feature-accordion-item:first-child .accordion-body {
    padding-top: 0;
}

/* Survey Designer */

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Stepper - Wizard-style pages */

.stepper {
    display: flex;
    height: 195px;
    gap: 20px;
    margin-bottom: 40px;
}

.stepper-label {
    font-size: 30px;
    color: #f8a71e;
    margin-top: 30px;
    margin-bottom: 30px;
}

.stepper-wrapper {
    width: 100%;
}

.required-label::before {
    content: "➜";
    color: #d32f2f;
    font-weight: bold;
    margin-right: 6px;
    display: inline-block;
}

.agreement-section {
    background: #363640;
    border: 1px solid #f2caca;
    padding: 16px;
    border-radius: 6px;
}

/* Mobile: stack DevExtreme field label above its editor */
@media (max-width: 576px) {
    #Wizard .dx-field {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #Wizard .dx-field-label {
        width: 100% !important;
        max-width: none !important;
        padding: 0 0 6px 0;
        white-space: normal;
    }

    #Wizard .dx-field-value {
        width: 100% !important;
        max-width: none !important;
    }

    /* Optional: ensure editors fill the full width */
    #Wizard .dx-texteditor,
    #Wizard .dx-dropdowneditor,
    #Wizard .dx-datebox,
    #Wizard .dx-numberbox,
    #Wizard .dx-selectbox {
        width: 100%;
    }
}

/* App screenshot showcase (Agent page) */
.app-showcase {
    margin-top: 48px; /* natural separator after the image section */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.app-showcase-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

    .app-showcase-row.reverse {
        flex-direction: row-reverse;
    }

/* Keep screenshot + card side-by-side even on phones */
.app-screenshot {
    width: 165px;
    max-width: 42vw;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    flex: 0 0 auto;
}

.app-showcase-card {
    flex: 1 1 0;
    min-width: 0;
}

/* On very tiny screens, allow wrapping so nothing overflows */
@media (max-width: 360px) {
    .app-showcase-row {
        flex-wrap: wrap;
    }

    .app-screenshot {
        width: 190px;
        max-width: 90vw;
    }
}