/* ==========================================================================
   CabMD Landing Pages — Bootstrap 5 Overrides & Brand Styling
   Loaded AFTER Bootstrap 5 CDN CSS on all Quadro.master pages.
   ========================================================================== */

/* --- CSS Variables / Brand Tokens --- */
:root {
    --cabmd-primary: #00A1FE;
    --cabmd-primary-dark: #0080cc;
    --cabmd-dark: #323231;
    --cabmd-text: #555;
    --cabmd-text-light: #888;
    --cabmd-bg-dark: #1a2d4e;
    --cabmd-bg-gradient: linear-gradient(135deg, #1a2d4e 0%, #1e4976 50%, #2a6cb0 100%);
    --cabmd-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --cabmd-card-radius: 10px;
}

/* --- Base Typography --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--cabmd-text);
    line-height: 1.7;
    background: #f5f7fa;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cabmd-dark);
    font-weight: 700;
}

a {
    color: var(--cabmd-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--cabmd-primary-dark);
    text-decoration: underline;
}

sub.reg {
    font-size: 0.5em;
    vertical-align: super;
    line-height: 0;
}

/* --- Navbar --- */
.navbar-landing {
    background: var(--cabmd-bg-gradient);
    padding: 0.5rem 0;
    border: none;
}

.navbar-landing .navbar-brand {
    padding: 0;
}

.navbar-landing .navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-landing .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    transition: color 0.2s;
}

.navbar-landing .navbar-nav .nav-link:hover,
.navbar-landing .navbar-nav .nav-link.active {
    color: #fff;
}

.navbar-landing .navbar-nav .nav-link.nav-login {
    text-decoration: underline;
}

.navbar-landing .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.6rem;
}

.navbar-landing .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.landing-hero {
    background: var(--cabmd-bg-gradient);
    color: #fff;
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.landing-hero h1,
.landing-hero h2 {
    color: #fff;
    font-weight: 800;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.landing-hero h1 {
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.landing-hero h2 {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.landing-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
}

.landing-hero .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Hero laptop/phone mockup */
.landing-hero .hero-media {
    position: relative;
    padding-bottom: 20px;
}

.landing-hero .laptop-mockup {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.landing-hero .laptop-frame {
    display: block;
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.landing-hero .laptop-screen {
    position: absolute;
    top: 6%;
    left: 16%;
    width: 70%;
    height: 75%;
    z-index: 1;
    object-fit: fill;
    border: none;
}

.landing-hero .mobile-preview {
    position: absolute;
    right: -10px;
    bottom: 0;
    height: 200px;
    z-index: 3;
    filter: drop-shadow(-4px 4px 8px rgba(0, 0, 0, 0.3));
}

/* --- Page Hero (subpages) --- */
.page-hero {
    background: var(--cabmd-bg-gradient);
    color: #fff;
    padding: 2rem 0;
}

.page-hero h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.page-hero .nav {
    margin-top: 0.5rem;
}

.page-hero .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
}

.page-hero .nav-link:hover,
.page-hero .nav-link.active {
    color: #fff;
}

/* --- Main Content Card --- */
.landing-content {
    background: #fff;
    border-radius: var(--cabmd-card-radius);
    box-shadow: var(--cabmd-card-shadow);
    padding: 2.5rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.landing-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.landing-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.landing-content h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--cabmd-dark);
}

.landing-content p {
    margin-bottom: 1rem;
}

.landing-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.landing-content ul:not(.nav):not(.list-unstyled) {
    padding-left: 1.5rem;
}

.landing-content .iframe-container {
    overflow: hidden;
    padding-top: 56.25%;
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.landing-content .iframe-container iframe {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* --- Buttons --- */
.btn-cabmd {
    background-color: var(--cabmd-primary);
    border-color: var(--cabmd-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-cabmd:hover {
    background-color: var(--cabmd-primary-dark);
    border-color: var(--cabmd-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 161, 254, 0.3);
}

.btn-cabmd-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-cabmd-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

/* --- Feature Blocks --- */
.feature-block {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: box-shadow 0.2s;
}

.feature-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-block h4 {
    font-size: 1.15rem;
    display: inline;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.feature-block p {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonial-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    color: var(--cabmd-dark);
}

.testimonial-card span {
    font-size: 0.85rem;
    color: var(--cabmd-text-light);
    display: block;
    margin-bottom: 0.75rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    text-align: start;
}

/* Bootstrap carousel overrides for testimonials */
.testimonial-carousel .carousel-item {
    padding: 0.5rem;
}

.testimonial-carousel .carousel-indicators {
    position: relative;
    margin-top: 1rem;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--cabmd-primary);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* --- Claims Counter --- */
.claims-counter-block {
    background: linear-gradient(135deg, var(--cabmd-primary), var(--cabmd-primary-dark));
    color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.claims-counter-block a {
    color: #fff;
    text-decoration: underline;
}

/* --- Pricing Cards --- */
.pricing-section {
    font-family: 'Poppins', 'Inter', sans-serif;
    text-align: center;
}

.pricing-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--cabmd-card-radius);
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card .plan-name {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--cabmd-text);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: #1c144e;
    line-height: 1.2;
}

.pricing-card .price-period {
    color: #1c144e;
    font-size: 0.95rem;
}

.pricing-card .price-body {
    flex: 1;
}

.pricing-card .price-footer {
    margin-top: auto;
}

.pricing-card .price-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pricing-card .price-body ul li {
    padding: 0.4rem 0;
    color: var(--cabmd-text);
}

.pricing-card .price-footer ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.pricing-card .price-footer ul li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--cabmd-text-light);
}

/* --- Forms (Bootstrap 5 form-floating based) --- */
.landing-form form {
    padding: 0;
}

/* --- Floating label overrides --- */
.landing-form .form-floating > .form-control,
.landing-form .form-floating > .form-select {
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}

.landing-form .form-floating > .form-control:focus,
.landing-form .form-floating > .form-select:focus {
    border-color: var(--cabmd-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 161, 254, 0.15);
}

.landing-form .form-floating > .form-control:hover,
.landing-form .form-floating > .form-select:hover {
    border-color: #aaa;
}

.landing-form .form-floating > label {
    color: var(--cabmd-text-light);
}

/* --- Toggle button group (Primary Use radios) --- */
.landing-form .btn-group .btn-outline-primary {
    --bs-btn-color: var(--cabmd-dark);
    --bs-btn-border-color: #ccc;
    --bs-btn-hover-color: var(--cabmd-primary-dark);
    --bs-btn-hover-bg: rgba(0, 161, 254, 0.05);
    --bs-btn-hover-border-color: var(--cabmd-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--cabmd-primary);
    --bs-btn-active-border-color: var(--cabmd-primary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
}

.landing-form .field-validation-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.landing-form .field-validation-valid {
    display: block;
}

.landing-form .validation-summary-errors ul li {
    color: #dc3545;
    font-size: 0.9rem;
}

.landing-form h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #eee;
}

.landing-form p {
    font-size: 0.9rem;
}

/* Sidebar info boxes */
.landing-sidebar .info-box {
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
}

.landing-sidebar .info-box:first-child {
    border-top: none;
}

/* --- Screenshots / Gallery --- */
.screenshot-thumb {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s;
    display: inline-block;
}

.screenshot-thumb:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.screenshot-thumb img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Map page --- */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.map-ctl-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.map-ctl-container .button-container {
    display: flex;
    gap: 0.5rem;
}

.map-ctl-container .slider-container {
    flex: 1;
}

.map-ctl-container .map-button {
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.map-ctl-container .date-container {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 100px;
    text-align: right;
}

/* --- Footer --- */
.landing-footer {
    background: var(--cabmd-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.landing-footer a:hover {
    color: #fff;
}

.landing-footer p {
    margin: 0;
    line-height: 2;
}

/* --- Error / Utility pages --- */
.utility-page {
    text-align: center;
    padding: 3rem 1rem;
}

.utility-page h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.utility-page p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* --- Store badge links --- */
a.storeLink:hover {
    text-decoration: none;
    border: 0;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .landing-hero h1 {
        font-size: 2.2rem;
    }

    .landing-hero h2 {
        font-size: 1.8rem;
    }

    .landing-hero .hero-media {
        display: none;
    }

    .landing-content {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .landing-hero {
        padding: 2rem 0 3rem;
        text-align: center;
    }

    .landing-hero h1 {
        font-size: 1.8rem;
    }

    .landing-hero h2 {
        font-size: 1.5rem;
    }

    .landing-hero p {
        margin: 0 auto 1rem;
        font-size: 1rem;
    }

    .page-hero h2 {
        font-size: 1.5rem;
    }

    .landing-content {
        padding: 1.25rem;
        border-radius: 0;
        margin-top: 0;
    }

    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .map-container {
        height: 350px;
    }

    .map-ctl-container {
        flex-wrap: wrap;
    }
}

/* --- Hint styles (email spell checker) --- */
#hint {
    color: #0d6efd;
    display: none;
    font-size: 0.9rem;
}

.wrong-suggestion {
    border-bottom: 1px dotted #0d6efd;
    text-decoration: none;
    cursor: pointer;
}

.domain {
    color: #0d6efd;
    font-weight: 700;
    text-decoration: underline;
}

u.hint {
    border-bottom: 1px dotted #0d6efd;
    text-decoration: none;
}

/* --- Free-trial callout box --- */
.trial-callout {
    border-top: 1px solid #dee2e6;
    background-color: #fffbea;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* --- Carousel for hero slides --- */
.hero-carousel .carousel-item {
    min-height: 240px;
}

.hero-carousel .carousel-indicators {
    bottom: auto;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.4);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    margin: 0 4px;
}

.hero-carousel .carousel-indicators .active {
    background-color: #fff;
}
