:root {
    --bg-color: #051020;
    /* Deep Navy Blue */
    --text-main: #ffffff;
    --accent-blue: #00f0ff;
    /* Lightning Blue / Electric Cyan */
    --accent-red: #ff4d4d;
    /* Warning Red */
    --card-bg: #0a192f;
    --font-main: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-red {
    color: var(--accent-red);
}

.text-blue {
    color: var(--accent-blue);
}

.text-center {
    text-align: center;
}

/* Header/Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.brand-name {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    padding-top: 60px;
    /* Offset for header */
}

.hero h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    max-width: 900px;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* .currency-symbol { } Removed empty rule */

.authority-statement {
    margin-top: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
}

.cta-container {
    margin-top: 3rem;
}

.btn-glow {
    background-color: var(--accent-blue);
    color: var(--bg-color);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    border-radius: 4px;
    /* Minimal border radius */
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
    background-color: #fff;
}

/* Services Section / Bento Grid */
.services-section {
    padding: 5rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-title {
    margin-bottom: 3rem;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.service-card {
    background: transparent;
    border: 1px solid var(--accent-blue);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    min-height: 300px;
    position: relative;
    /* For badge positioning */
}

.service-card:hover {
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.service-name {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.service-quote {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0;
    /* Pushed by justify-content */
}

/* Best Value Badge */
.best-value {
    border: 2px solid var(--accent-blue);
    /* Thicker border */
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.badge {
    position: absolute;
    top: -12px;
    background-color: var(--accent-blue);
    color: var(--bg-color);
    padding: 2px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Expandable Details */
.btn-text {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    margin-bottom: 1rem;
    font-family: var(--font-main);
    transition: opacity 0.2s;
}

.btn-text:hover {
    opacity: 0.8;
}

.details-content {
    display: none;
    /* Hidden by default */
    text-align: left;
    font-size: 0.9rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.details-content p {
    margin-bottom: 0.8rem;
}

/* Comparison Table */
.comparison-container {
    max-width: 1200px;
    margin: 4rem auto 0;
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    text-transform: uppercase;
    color: var(--accent-blue);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #ccc;
}

.check {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.off {
    color: #444;
}


/* Forms (Shared & Intake) */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 4px;
}

/* Input Placeholders */
::placeholder,
::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    color: #888 !important;
    opacity: 1;
}

/* Checkbox & Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    width: auto !important;
    display: inline-block !important;
    margin-right: 0.5rem;
    cursor: pointer;
    background: transparent !important;
    height: auto !important;
    vertical-align: middle;
    /* Ensures alignment with text */
    position: relative;
    top: -1px;
    /* Slight tweak for perfect optical alignment */
}

/* Specific Select Styling to Fix Visibility */
select {
    color: white !important;
    background-color: #0a192f !important;
    /* Dark background */
    border: 1px solid #333;
    padding: 1rem;
    appearance: none;
    /* Remove default arrow if needed, but usually fine */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select option {
    background-color: #051020;
    color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    opacity: 0.6;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin: 0 1rem;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
}

/* --- NEW STYLES FOR REVENUE LEAK AUDIT --- */

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-blue);
    padding: 1.5rem;
    text-align: left;
    color: white;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: var(--accent-blue);
    color: var(--bg-color);
    transform: translateX(5px);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    transition: width 0.3s ease;
}

/* Results Page */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.result-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.badge-critical {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
}

.badge-caution {
    background-color: #ffd700;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.badge-solid {
    background-color: #00ff88;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.diagnosis-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-blue);
}

/* --- AUDIT PAGE STYLES --- */
#start-screen {
    animation: fadeIn 0.8s ease-out;
}

#lead-capture {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 3rem;
    max-width: 800px;
    margin: 80px auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}