/*
 * CSS Stylesheet for 24Hour Bathroom Remodel Landing Page
 * Custom layout matching screenshot exactly.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0f172a;
    --text-color: #1e293b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #cbd5e1;
    --success-color: #8ae32c;
    --success-hover: #7cd023;
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.2s;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
}

/* ----------------------------------------------------
 * Layout Structure
 * ---------------------------------------------------- */
.funnel-layout-body {
    background: url('https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

/* ----------------------------------------------------
 * Header Styles
 * ---------------------------------------------------- */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    z-index: 10;
}

/* Brand Logo Layout */
.header-logo-container {
    display: flex;
    align-items: center;
}

.brand-text-block {
    line-height: 1.15;
}

.brand-line-1 {
    font-weight: 800;
    font-size: 1.45rem;
    color: #00b4d8;
    margin: 0;
}

.brand-line-2 {
    font-weight: 800;
    font-size: 1.35rem;
    color: #0077b6;
    margin: 0;
}

.brand-line-3 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Phone link styling */
.header-phone-right .phone-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: #475569;
    text-decoration: underline;
    transition: color var(--transition-speed);
}

.header-phone-right .phone-link:hover {
    color: #0077b6;
}

/* ----------------------------------------------------
 * Funnel Container Card
 * ---------------------------------------------------- */
.funnel-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 2rem 1rem;
}

.funnel-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 660px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
}

.funnel-card-text {
    font-size: 0.92rem;
    line-height: 1.6;
    font-weight: 600;
    color: #0f172a;
    text-align: justify;
    margin-bottom: 2rem;
}

/* Start Here Header */
.start-here-heading-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.start-here-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.start-here-subtitle {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: left;
}

/* Multi-step form step tags */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInSlide 0.3s ease-out forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection Cards (Inside Card steps) */
.selection-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background-color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.selection-card:hover {
    border-color: #0077b6;
    transform: translateY(-2px);
}

.selection-card.selected {
    border-color: #0077b6;
    background-color: rgba(0, 119, 182, 0.05);
}

.selection-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.selection-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.selection-card::after {
    content: "\F272";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.95rem;
    color: #0077b6;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.selection-card.selected::after {
    opacity: 1;
    transform: scale(1);
}

/* Input elements */
.form-control-custom {
    background-color: #f1f5f9;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
    outline: none;
}

.zip-badge {
    font-size: 0.75rem;
    background-color: transparent;
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

/* Blue CTA Button */
.btn-cta {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-hover);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    text-transform: capitalize;
}

.btn-cta:hover {
    background-color: var(--primary-hover);
    border-color: #172554;
    color: #ffffff;
}

.btn-back {
    color: #64748b;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    margin-top: 1rem;
    padding: 0.25rem 0.5rem;
    transition: color var(--transition-speed);
}

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

/* Loading/Qualification Screen */
.loader-content {
    text-align: center;
    padding: 1rem 0;
}

.loader-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
}

.loader-ring {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(0, 119, 182, 0.08);
    border-top: 4px solid #0077b6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    color: #0077b6;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-status-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.loader-log-items {
    list-style: none;
    padding: 0;
    margin: 1rem auto 0 auto;
    max-width: 280px;
    text-align: left;
    font-size: 0.8rem;
    color: #64748b;
}

.loader-log-items li {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Success View Inline */
.inline-success-view {
    text-align: center;
    padding: 0.5rem 0;
}

.inline-success-icon {
    font-size: 3.5rem;
    color: #10b981;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Multi-step Header */
.funnel-card-header {
    margin-bottom: 1.25rem;
    display: none;
    /* Hidden on ZIP step, shown on other steps via JS */
}

.funnel-progress {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.funnel-progress-bar {
    height: 100%;
    background-color: #0077b6;
    width: 20%;
    transition: width 0.3s ease;
}

.funnel-step-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0077b6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}

/* ----------------------------------------------------
 * Footer Elements
 * ---------------------------------------------------- */
.funnel-footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 100%;
    color: #ffffff;
}

.funnel-footer p {
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.footer-link {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 600;
}

.footer-link:hover {
    color: #cbd5e1 !important;
}

/* Form layout adjust on capture step */
#step-6 label {
    text-align: left;
}

/* Responsive adjust */
@media (max-width: 575.98px) {
    .funnel-card {
        padding: 1.5rem 1.25rem;
    }

    .funnel-card-text {
        font-size: 0.85rem;
        text-align: justify;
    }

    .brand-line-1 {
        font-size: 1.25rem;
    }

    .brand-line-2 {
        font-size: 1.15rem;
    }

    .brand-line-3 {
        font-size: 0.85rem;
    }

    .header-phone-right .phone-link {
        font-size: 1.05rem;
    }
}

/* ----------------------------------------------------
 * Legal & Contact Pages styling (solid backgrounds)
 * ---------------------------------------------------- */
.legal-container,
.contact-container,
.bg-light-custom {
    background-color: #f8fafc !important; /* Force solid color to cover body's bathroom image */
    background-image: none !important;
    padding: 3rem 0;
    flex-grow: 1;
    display: block;
    width: 100%;
}

.legal-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    text-align: left; /* Ensure legal copy is left-aligned, not centered */
}

.legal-card h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.legal-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-card p {
    line-height: 1.7;
    color: #334155;
    margin-bottom: 1.25rem;
}

.legal-card ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-card li {
    line-height: 1.7;
    color: #334155;
    margin-bottom: 0.5rem;
}