/* FindMyCaseManager - Custom Styles */

:root {
    --fmcm-primary: #1a5276;
    --fmcm-primary-light: #2980b9;
    --fmcm-secondary: #148f77;
    --fmcm-secondary-light: #1abc9c;
    --fmcm-dark: #1c2833;
    --fmcm-light: #f8f9fa;
    --fmcm-text: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--fmcm-text);
}

/* Navbar */
.fmcm-navbar {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #e9ecef;
}

.fmcm-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* Hero Section */
.fmcm-hero {
    background: linear-gradient(135deg, var(--fmcm-primary) 0%, var(--fmcm-secondary) 100%);
    padding: 4rem 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.fmcm-hero h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cards */
.fmcm-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fmcm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.fmcm-card__icon {
    color: var(--fmcm-primary);
}

/* Search Form */
.fmcm-search__form .form-label {
    font-weight: 600;
    color: var(--fmcm-text);
}

.fmcm-search__form .form-control,
.fmcm-search__form .form-select {
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
}

.fmcm-search__form .form-control:focus,
.fmcm-search__form .form-select:focus {
    border-color: var(--fmcm-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.25);
}

/* Step indicators */
.fmcm-step {
    font-size: 1.5rem;
}

/* Footer */
.fmcm-footer {
    background: var(--fmcm-dark);
    color: #ecf0f1;
}

.fmcm-footer a {
    color: #bdc3c7;
}

.fmcm-footer a:hover {
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    background-color: var(--fmcm-primary);
    border-color: var(--fmcm-primary);
}

.btn-primary:hover {
    background-color: var(--fmcm-primary-light);
    border-color: var(--fmcm-primary-light);
}

.btn-outline-primary {
    color: var(--fmcm-primary);
    border-color: var(--fmcm-primary);
}

.btn-outline-primary:hover {
    background-color: var(--fmcm-primary);
    border-color: var(--fmcm-primary);
    color: #fff;
}

/* Form styling */
.form-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

/* Card headers in forms */
.card-header {
    background-color: var(--fmcm-light);
    border-bottom: 2px solid var(--fmcm-primary);
}

/* Alert customisation */
.alert-success {
    border-left: 4px solid #27ae60;
}

.alert-danger {
    border-left: 4px solid #e74c3c;
}

.alert-info {
    border-left: 4px solid var(--fmcm-primary-light);
}

/* Availability badges */
.badge-available {
    background-color: #27ae60;
}

.badge-limited {
    background-color: #f39c12;
}

.badge-unavailable {
    background-color: #e74c3c;
}

/* Text utilities */
.text-primary {
    color: var(--fmcm-primary) !important;
}

/* Capability Matrix */
.fmcm-capability-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.fmcm-capability-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

.fmcm-capability-card .card-body {
    padding: 0.75rem 1rem;
}

.capability-count {
    font-size: 0.75rem;
    min-width: 20px;
    text-align: center;
}

.age-group-panel .form-check {
    min-width: 120px;
}

.accordion-button:not(.collapsed) .capability-count {
    background-color: white !important;
    color: var(--fmcm-primary) !important;
}

/* Search Results */
.fmcm-result-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.fmcm-result-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.fmcm-result-card__headshot {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e8e8e8;
}

.fmcm-result-card__headshot-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fmcm-primary) 0%, var(--fmcm-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.fmcm-distance-badge {
    background-color: #e8f4fd;
    color: var(--fmcm-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
}

.fmcm-tier-upgrade {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1px solid var(--fmcm-primary-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Profile page */
.fmcm-profile__headshot {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e8e8e8;
}

.fmcm-profile__capability-badge {
    display: inline-block;
    background: #e8f4fd;
    color: var(--fmcm-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    margin: 0.2rem;
}

/* Pagination */
.fmcm-pagination .page-link {
    color: var(--fmcm-primary);
}

.fmcm-pagination .page-item.active .page-link {
    background-color: var(--fmcm-primary);
    border-color: var(--fmcm-primary);
}

/* Error Pages */
.fmcm-error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fmcm-error-page__code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--fmcm-primary);
    line-height: 1;
}

.fmcm-error-page__message {
    font-size: 1.5rem;
    color: var(--fmcm-text);
    margin-bottom: 2rem;
}

/* ============================================================
   Phase 6: Public Website & Polish
   ============================================================ */

/* Enhanced Hero Sections */
.fmcm-hero--home {
    padding: 5rem 0 6rem;
    min-height: 520px;
    background: linear-gradient(135deg, var(--fmcm-primary) 0%, #1a6e5e 50%, var(--fmcm-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.fmcm-hero--home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.fmcm-hero--home::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
}

.fmcm-hero--sales {
    padding: 4rem 0 5rem;
    min-height: 420px;
    background: linear-gradient(135deg, var(--fmcm-primary) 0%, #1a6e5e 60%, var(--fmcm-secondary) 100%);
}

.fmcm-hero--compact {
    padding: 3rem 0;
    min-height: auto;
}

.fmcm-hero__logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Icon Circles */
.fmcm-card__icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4ecfa 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fmcm-primary);
}

/* Steps Section */
.fmcm-steps__circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fmcm-primary) 0%, var(--fmcm-primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3);
    position: relative;
}

.fmcm-steps__item {
    position: relative;
}

/* Connecting lines between steps (desktop only) */
@media (min-width: 768px) {
    .fmcm-steps__item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 36px;
        right: -12%;
        width: 24%;
        height: 2px;
        background: linear-gradient(to right, var(--fmcm-primary-light), rgba(41, 128, 185, 0.2));
        z-index: 0;
    }
}

/* Trust Signals Section */
.fmcm-trust-section {
    background: linear-gradient(135deg, var(--fmcm-primary) 0%, var(--fmcm-secondary) 100%);
}

/* CTA Banner */
.fmcm-cta-banner {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    border: 1px solid rgba(41, 128, 185, 0.15);
}

/* Testimonial Cards */
.fmcm-testimonial-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--fmcm-primary-light);
}

/* Free Callout */
.fmcm-free-callout {
    background: linear-gradient(135deg, #e8f8f0 0%, #d5f5e3 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    border: 1px solid rgba(20, 143, 119, 0.15);
}

/* Footer Improvements */
.fmcm-footer {
    background: var(--fmcm-dark);
    color: #ecf0f1;
    margin-top: 0;
}

.fmcm-footer__logo {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.fmcm-footer__social a:hover {
    color: #ffffff !important;
}

/* Contact Page */
.fmcm-contact__icon {
    width: 40px;
    flex-shrink: 0;
}

.fmcm-map-placeholder {
    background: #f0f3f5;
    border-radius: 0.75rem;
    height: 200px;
    border: 2px dashed #dee2e6;
}

/* Team Placeholder */
.fmcm-team-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

/* Legal Pages */
.fmcm-legal-nav {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
}

.fmcm-legal-nav a {
    color: var(--fmcm-primary);
}

.fmcm-legal-nav a:hover {
    color: var(--fmcm-primary-light);
}

/* Why Section Icons */
.fmcm-why__icon {
    width: 32px;
    flex-shrink: 0;
}

/* Logo Responsive */
.navbar-brand img {
    vertical-align: middle;
}

/* Sales page feature cards with icon circle on the left */
@media (max-width: 767.98px) {
    .fmcm-hero--home {
        padding: 3rem 0 4rem;
        min-height: auto;
    }

    .fmcm-hero--sales {
        padding: 3rem 0;
        min-height: auto;
    }

    .fmcm-hero--home h1,
    .fmcm-hero--sales h1 {
        font-size: 2rem;
    }

    .fmcm-cta-banner {
        padding: 2rem 1rem;
    }

    .fmcm-steps__circle {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
}

/* Pricing card border highlight */
.card.border-primary {
    border-width: 2px !important;
}
