/* ═══════════════════════════════════════════════
   DOCKSNAP DOCK SCORECARD
   ───────────────────────────────────────────────
   Color variable mapping (main site uses inverted names):
     --black   = #ffffff  (page background, light surfaces)
     --off-black = #f5f5f7 (subtle light gray)
     --dark-gray = #f0f0f2 (light gray)
     --mid-gray  = #d8dae0 (borders)
     --text-gray = #6b7280 (secondary text)
     --white     = #1a1a2e (primary dark text)
     --green     = #009DDF (accent cyan)
     --green-dark = #0080B8
   ═══════════════════════════════════════════════ */

/* ── Page wrapper ── */
.scorecard-page {
    padding-top: 80px; /* clear fixed nav */
}

/* ── Hero banner ── */
.scorecard-banner {
    background: var(--white);
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.scorecard-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 157, 223, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 157, 223, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.scorecard-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.scorecard-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.scorecard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 157, 223, 0.15);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.scorecard-hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.scorecard-hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Quiz track (progress + card) ── */
.scorecard-track {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

/* ── Progress bar ── */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar-wrapper {
    background: var(--mid-gray);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#quiz-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    transition: width 0.4s ease;
    width: 20%;
    border-radius: 2px;
}

#progress-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ── Quiz card ── */
.quiz-card {
    background: var(--black);
    border: 1px solid var(--mid-gray);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Question header ── */
.question-header {
    text-align: center;
    margin-bottom: 2rem;
}

.question-number {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.question-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);          /* dark text on light bg */
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.question-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

.selection-hint {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ── Option buttons ── */
.question-options {
    display: grid;
    gap: 0.65rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--mid-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--black);     /* white surface */
    text-align: left;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.quiz-option:hover {
    border-color: var(--green);
    background: var(--off-black);
}

.quiz-option.selected {
    border-color: var(--green);
    background: var(--green-bg);
    border-width: 2px;
    padding: calc(1rem - 1px) calc(1.125rem - 1px);
}

.quiz-option.selected .option-check {
    opacity: 1;
    color: var(--green);
}

.option-icon {
    width: 42px;
    height: 42px;
    border: 2px solid var(--mid-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: var(--off-black);
}

.quiz-option:hover .option-icon {
    border-color: var(--green);
}

.option-icon i {
    font-size: 1rem;
    color: var(--green);
    transition: color 0.2s ease;
}

.quiz-option.selected .option-icon {
    background: var(--green);
    border-color: var(--green);
}

.quiz-option.selected .option-icon i {
    color: #fff;
}

.option-content {
    flex: 1;
}

.option-label {
    font-weight: 600;
    color: var(--white);          /* dark text */
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.option-description {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.4;
}

.option-check {
    font-size: 1.15rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--mid-gray);
}

/* ── Multi-select grid ── */
.question-options.multi-select {
    grid-template-columns: repeat(2, 1fr);
}

.question-options.multi-select .quiz-option {
    padding: 0.875rem 1rem;
}

.question-options.multi-select .option-icon {
    width: 36px;
    height: 36px;
}

.question-options.multi-select .option-description {
    display: none;
}

@media (max-width: 600px) {
    .question-options.multi-select {
        grid-template-columns: 1fr;
    }
}

/* ── Slide-in animation ── */
.question-entering {
    animation: sc-slideIn 0.3s ease;
}

@keyframes sc-slideIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Nav buttons ── */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mid-gray);
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--mid-gray);
    border-radius: 6px;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
    background: var(--off-black);
    color: var(--text-gray);
}

.sc-btn:hover:not(:disabled) {
    background: var(--dark-gray);
    color: var(--white);
}

.sc-btn--next {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.sc-btn--next:hover:not(:disabled) {
    background: var(--green-dark);
    color: #fff;
}

.sc-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════
   LEAD CAPTURE FORM
   ═══════════════════════════════════════════════ */
.lead-capture {
    text-align: center;
    max-width: 460px;
    margin: 0 auto;
}

.lead-capture-header {
    margin-bottom: 2rem;
}

.completion-icon {
    width: 68px;
    height: 68px;
    background: var(--green-bg);
    border: 2px solid var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.completion-icon i {
    font-size: 1.6rem;
    color: var(--green);
}

.lead-capture-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);          /* dark text */
    margin: 0 0 0.5rem;
}

.lead-capture-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ── Form fields ── */
.lead-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--white);          /* dark label text */
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--mid-gray);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
    background: var(--off-black);
    color: var(--white);          /* dark text on light input */
}

.form-group input::placeholder {
    color: var(--text-gray);
}

.form-group input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
    background: var(--black);
}

.checkbox-group {
    margin-top: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--green);
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.submit-btn {
    width: 100%;
    padding: 0.9rem 2rem;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

.submit-btn:hover:not(:disabled) {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--green-glow);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* ── Trust badges ── */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mid-gray);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-gray);
    font-size: 0.72rem;
    font-weight: 500;
}

.trust-badge i {
    color: #22c55e;
    font-size: 0.65rem;
}

/* ═══════════════════════════════════════════════
   RESULTS PAGE
   ═══════════════════════════════════════════════ */
.results-page {
    animation: sc-fadeIn 0.5s ease;
}

@keyframes sc-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.results-section {
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--mid-gray);
}

.results-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.results-section h2 {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.results-section h2 i {
    color: var(--green);
    font-size: 0.85rem;
}

/* ── Persona card ── */
.persona-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.persona-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.persona-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.persona-intro {
    flex: 1;
}

.persona-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.2rem;
}

.persona-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);          /* dark text */
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.persona-tagline {
    font-style: italic;
    color: var(--text-gray);
    margin: 0;
    font-size: 0.88rem;
}

.persona-description {
    color: var(--text-gray);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ── Priorities ── */
.profile-priorities {
    background: var(--off-black);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--green);
}

.profile-priorities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-priorities li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--white);          /* dark text */
    font-size: 0.93rem;
}

.profile-priorities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

/* ── Recommendation cards ── */
.location-cards {
    display: grid;
    gap: 1rem;
}

.location-card {
    background: var(--off-black);
    border: 1px solid var(--mid-gray);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    transition: border-color 0.2s ease;
}

.location-card:hover {
    border-color: var(--green);
}

.location-card.top-match {
    border-color: var(--green);
    border-width: 2px;
    padding: calc(1.5rem - 1px);
}

.match-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--green);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);          /* dark text */
    margin: 0 0 0.2rem;
}

.location-tagline {
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.83rem;
    margin: 0 0 0.65rem;
}

.location-description {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    line-height: 1.6;
}

.location-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--black);
    border: 1px solid var(--mid-gray);
    border-radius: 4px;
    padding: 0.3rem 0.65rem;
    font-size: 0.77rem;
    color: var(--white);          /* dark text */
    font-weight: 500;
}

.highlight i {
    color: #22c55e;
    font-size: 0.65rem;
}

/* ── Budget guidance ── */
.budget-tier-info {
    background: var(--off-black);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.93rem;
    line-height: 1.7;
    border-left: 3px solid var(--green);
}

.budget-tier-info p {
    margin: 0;
}

/* ═══════════════════════════════════════════════
   RESULTS CTA
   ═══════════════════════════════════════════════ */
.scorecard-cta {
    text-align: center;
    background: var(--white);     /* dark panel */
    margin: 2rem -2.5rem -2.5rem;
    padding: 2.5rem;
    position: relative;
    border-radius: 0 0 12px 12px;
}

.scorecard-cta h2 {
    font-family: var(--font-heading);
    color: #ffffff;               /* white text on dark bg */
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.scorecard-cta .gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    margin: 0.75rem auto 1rem;
}

.scorecard-cta p {
    color: rgba(255, 255, 255, 0.55);
    max-width: 380px;
    margin: 0 auto 1.5rem;
    font-size: 0.93rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 6px;
}

.cta-btn.primary {
    background: var(--green);
    color: #fff;
}

.cta-btn.primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--green-glow);
}

.cta-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cta-btn.secondary:hover {
    border-color: var(--green);
    background: rgba(0, 157, 223, 0.1);
}

.cta-contact {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #ffffff;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .scorecard-page {
        padding-top: 60px;
    }

    .scorecard-banner {
        padding: 2.5rem 1.25rem 2rem;
    }

    .scorecard-hero-title {
        font-size: 1.5rem;
    }

    .scorecard-track {
        padding: 1.5rem 1rem 2rem;
    }

    .quiz-card {
        padding: 1.5rem;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .quiz-option {
        padding: 0.875rem 1rem;
    }

    .option-icon {
        width: 36px;
        height: 36px;
    }

    .persona-header {
        flex-direction: column;
        text-align: center;
    }

    .persona-name {
        font-size: 1.2rem;
    }

    .scorecard-cta {
        margin: 1.5rem -1.5rem -1.5rem;
        padding: 1.75rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        justify-content: center;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
}
