/* ============================================
   Beyond Property — Shared Tool Styles
   ============================================ */

/* Tool Container */
.tool-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.tool-container h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tool-container p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Progress Bar */
.tool-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.tool-progress-step {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    transition: background 0.4s ease;
}

.tool-progress-step.active {
    background: var(--primary);
}

.tool-progress-step.completed {
    background: var(--gold);
}

.tool-progress-label {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
    min-width: fit-content;
}

/* Steps */
.tool-step {
    display: none;
    animation: toolFadeIn 0.35s ease;
}

.tool-step.active {
    display: block;
}

@keyframes toolFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-step h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tool-step p.step-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Option Cards (tappable answers) */
.option-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    width: 100%;
}

.option-card:hover {
    border-color: var(--primary);
    background: #f0f4fa;
}

.option-card.selected {
    border-color: var(--primary);
    background: #edf2f7;
    font-weight: 600;
}

.option-card .option-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    background: var(--light);
}

.option-card.selected .option-icon {
    background: var(--primary);
    color: var(--white);
}

.option-card .option-text {
    flex: 1;
}

.option-card .option-text strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.option-card .option-text span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Navigation Buttons */
.tool-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.tool-nav .btn {
    min-width: 140px;
}

.tool-nav .btn-back {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border);
}

.tool-nav .btn-back:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Result Section */
.tool-result {
    display: none;
    text-align: center;
    animation: toolFadeIn 0.5s ease;
}

.tool-result.active {
    display: block;
}

/* Traffic Light Result */
.result-badge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: resultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes resultPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.result-badge.green {
    background: #c6f6d5;
    color: #22543d;
    box-shadow: 0 0 0 8px rgba(72, 187, 120, 0.15);
}

.result-badge.amber {
    background: #fefcbf;
    color: #744210;
    box-shadow: 0 0 0 8px rgba(214, 158, 46, 0.15);
}

.result-badge.red {
    background: #fed7d7;
    color: #9b2c2c;
    box-shadow: 0 0 0 8px rgba(229, 62, 62, 0.15);
}

.result-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.result-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Result Detail Cards */
.result-details {
    text-align: left;
    margin-top: 2rem;
}

.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.result-card h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-card p, .result-card li {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.result-card ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.result-card li {
    margin-bottom: 0.35rem;
}

.result-card.highlight {
    border-color: var(--gold);
    border-width: 2px;
    background: #fffdf5;
}

/* Timeline (for eviction tool) */
.timeline {
    text-align: left;
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 1;
}

.timeline-item.active::before {
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.timeline-item .timeline-duration {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Cost Estimate Box */
.cost-estimate {
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.cost-estimate .cost-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.cost-estimate .cost-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.cost-estimate .cost-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* CTA Box in Results */
.tool-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--white);
}

.tool-cta h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.tool-cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tool-cta .btn-primary {
    display: inline-block;
}

.tool-cta .btn-outline {
    margin-left: 0.75rem;
}

.tool-cta .hero-buttons {
    justify-content: center;
}

/* Lead Capture Form */
.tool-lead-form {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.tool-lead-form h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tool-lead-form p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tool-lead-form .inline-form-fields {
    justify-content: center;
}

/* Checklist */
.checklist {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    content: '☐';
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Emergency Banner */
.emergency-banner {
    background: #fed7d7;
    border: 2px solid #fc8181;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.emergency-banner .emergency-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.emergency-banner p {
    color: #9b2c2c;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.emergency-banner strong {
    color: #742a2a;
}

/* Disclaimer */
.tool-disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
}

/* Tools Landing Page */
.tools-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 3px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    display: block;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: var(--gold);
}

.tool-card .tool-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.tool-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-card .tool-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: #edf2f7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* FAQ Section for Tool Pages */
.tool-faq {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.tool-faq h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Print Styles */
@media print {
    nav, .sticky-cta, .back-to-top, .whatsapp-btn,
    .tool-nav, .tool-cta, .tool-lead-form,
    .tool-progress, #cookie-banner, .mobile-phone-btn {
        display: none !important;
    }

    .tool-container {
        padding: 0;
        max-width: 100%;
    }

    .tool-result {
        display: block !important;
    }

    .page-hero {
        background: var(--primary) !important;
        padding: 2rem !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .result-badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .timeline-item .timeline-duration {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        padding-bottom: 0 !important;
    }

    footer {
        padding: 1rem 2rem;
    }

    .footer-top {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        padding: 2rem 1.25rem 3rem;
    }

    .tool-nav {
        flex-direction: column-reverse;
    }

    .tool-nav .btn {
        width: 100%;
        text-align: center;
    }

    .tool-cta .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tool-cta .btn-outline {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
    }

    .result-badge {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .result-title {
        font-size: 1.5rem;
    }
}
