/**
 * Zocdoc Component Styles
 * Custom styles for reusable EJS components
 */

/* ============================================
   NAVBAR COMPONENT
   ============================================ */
.zocdoc-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    transition: box-shadow 0.3s ease;
}

.zocdoc-navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.zocdoc-navbar .nav-link {
    color: #2D2D32;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.zocdoc-navbar .nav-link:hover {
    color: #000000;
}

.zocdoc-navbar .btn-signin {
    margin-left: 1rem;
}

/* Dropdown Menu Styles */
.zocdoc-navbar .dropdown-menu {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.zocdoc-navbar .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #2D2D32;
    font-weight: 500;
    transition: all 0.2s ease;
}

.zocdoc-navbar .dropdown-item:hover {
    background: #FFF9EA;
    color: #2D2D32;
}

.zocdoc-navbar .dropdown-item svg {
    flex-shrink: 0;
}

.zocdoc-navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
}


/* ============================================
   HERO SEARCH COMPONENT
   ============================================ */
.hero-search {
    background: #FFF9EA;
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-search__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-search__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-search__content {
    flex: 1 1 100%;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    z-index: 1;
    position: relative;
}

.hero-search__art {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    width: 50%;
}

.hero-search__hands {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 65px rgba(0, 0, 0, 0.18));
}

.hero-search__intro {
    max-width: 760px;
    margin: 0 0 2.5rem;
    text-align: left;
}

.hero-search__intro--landing {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.hero-search__title {
    font-size: 3.5rem;
    font-weight: 500;
    color: #2D2D32;
    margin-bottom: 1rem;
    line-height: 1.05;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #2D2D32 0%, #1a1a1d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-search__subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 400;
}

.hero-search__bar-wrapper {
    position: relative;
    max-width: none;
    margin: 0;
}

.hero-search__bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border: 1px solid #F2E9D6;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    min-height: 94px;
}

.hero-search__bar--inline {
    margin-top: 0;
}

.hero-search__field {
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
}

.hero-search__label {
    font-size: 0.95rem;
    color: #787A80;
    letter-spacing: 0.01em;
    margin: 0;
}

.hero-search__input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #2D2D32;
    outline: none;
    padding: 0;
}

.hero-search__input::placeholder {
    color: #9699A1;
}

.hero-search__divider {
    width: 1px;
    background: #E5E7EB;
}

.hero-search__submit {
    background: #FEF04B;
    color: #2D2D32;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    min-width: 190px;
    border-left: 1px solid #F2E9D6;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: inset 0 -2px 0 #E6D437, 0 12px 24px rgba(0, 0, 0, 0.12);
}

.hero-search__submit--landing {
    padding: 0 2rem;
    min-width: 200px;
}

.hero-search__submit svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.hero-search__submit:hover {
    background: #FCD22B;
    transform: translateY(-1px);
    box-shadow: inset 0 -2px 0 #D6B320, 0 16px 32px rgba(0, 0, 0, 0.16);
}

.hero-search__submit:focus-visible {
    outline: 3px solid rgba(254, 240, 75, 0.45);
    outline-offset: 2px;
}


.search-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(254, 240, 75, 0.12);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2D2D32;
}

.trust-badge svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   ZOCDOC HERO COMPONENT  
   ============================================ */
.zocdoc-hero {
    background: #FFF9EA;
    padding: 4.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.zocdoc-hero .container {
    position: relative;
}


/* ============================================
   CARD COMPONENTS
   ============================================ */

/* Feature Card */
.feature-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: #FFF9EA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon svg {
    width: 32px;
    height: 32px;
    color: #2D2D32;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2D2D32;
}

.feature-card__description {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Doctor Card */
.doctor-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.doctor-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.doctor-card__image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.doctor-card__content {
    flex: 1;
}

.doctor-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D2D32;
    margin-bottom: 0.25rem;
}

.doctor-card__specialty {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.doctor-card__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.doctor-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.doctor-card__availability {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Specialty Card */
.specialty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.specialty-card:hover {
    background: #FFF9EA;
    border-color: #FCD22B;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.specialty-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #FFF9EA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialty-card__icon svg {
    width: 32px;
    height: 32px;
    color: #2D2D32;
}

.specialty-card__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2D2D32;
    margin-bottom: 0.5rem;
}

.specialty-card__count {
    font-size: 0.875rem;
    color: #6B7280;
}

/* ============================================
   CTA SECTION COMPONENT
   ============================================ */
.cta-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section--cream {
    background: #FFF9EA;
}

.cta-section--yellow {
    background: #FEF04B;
}

.cta-section--white {
    background: #FFFFFF;
}

.cta-section__content {
    max-width: 600px;
}

.cta-section__heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D2D32;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-section__subheading {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-section__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ============================================
   FOOTER COMPONENT
   ============================================ */
.zocdoc-footer {
    background: #2D2D32;
    color: #F4F4F5;
    padding: 3rem 0 1.5rem;
}

.footer-column__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #FEF04B;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: #FEF04B;
    color: #2D2D32;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: #9CA3AF;
}

/* ============================================
   BUTTON COMPONENT
   ============================================ */
.zd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}

.zd-btn--primary {
    background: #FEF04B;
    color: #2D2D32;
}

.zd-btn--primary:hover {
    background: #FCD22B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 240, 75, 0.3);
}

.zd-btn--secondary {
    background: transparent;
    color: #2D2D32;
    border: 2px solid #2D2D32;
}

.zd-btn--secondary:hover {
    background: #2D2D32;
    color: #FFFFFF;
}

.zd-btn--text {
    background: transparent;
    color: #2D2D32;
    padding: 0.5rem 1rem;
}

.zd-btn--text:hover {
    background: rgba(0, 0, 0, 0.05);
}

.zd-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.zd-btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.zd-btn:disabled,
.zd-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   BADGE COMPONENT
   ============================================ */
.zd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
}

.zd-badge svg {
    width: 14px;
    height: 14px;
}

.zd-badge--insurance {
    background: #DBEAFE;
    color: #1E40AF;
}

.zd-badge--specialty {
    background: #D1FAE5;
    color: #065F46;
}

.zd-badge--availability {
    background: #D1FAE5;
    color: #059669;
}

.zd-badge--info {
    background: #E5E7EB;
    color: #374151;
}

/* ============================================
   RATING STARS COMPONENT
   ============================================ */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars__stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars__star {
    width: 16px;
    height: 16px;
    color: #FCD22B;
}

.rating-stars__star--empty {
    color: #D1D5DB;
}

.rating-stars__count {
    font-size: 0.875rem;
    color: #6B7280;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .hero-search__layout {
        gap: 3rem;
    }

    .hero-search__hands {
        max-width: 500px;
    }

    .hero-search__art {
        top: 0;
        opacity: 0.6;
    }
}

@media (max-width: 992px) {
    .hero-search__layout {
        flex-direction: column;
        gap: 2.5rem;
    }

    .hero-search__content {
        max-width: 640px;
        text-align: center;
        align-items: center;
    }

    .hero-search__intro {
        text-align: center;
    }

    .hero-search__title {
        font-size: 2.6rem;
    }

    .hero-search__bar {
        flex-direction: column;
        min-height: auto;
    }

    .hero-search__field {
        padding: 1rem 1.25rem;
    }

    .hero-search__divider {
        display: none;
    }

    .hero-search__submit {
        width: 100%;
        border-left: none;
        border-top: 1px solid #F2E9D6;
        border-radius: 0 0 18px 18px;
    }

    .hero-search__hands {
        display: none;
    }

    .hero-search__art {
        display: none;
    }

    .zocdoc-hero {
        padding: 3.25rem 0 3.5rem;
    }

    .doctor-card {
        flex-direction: column;
        text-align: center;
    }

    .doctor-card__image {
        margin: 0 auto;
    }

    .cta-section__heading {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-search__title {
        font-size: 2.2rem;
    }

    .hero-search__subtitle {
        font-size: 1rem;
    }

    .hero-search__bar {
        border-radius: 16px;
    }

    .hero-search__submit {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-search__title {
        font-size: 1.95rem;
    }

    .trust-badge {
        width: 100%;
        justify-content: center;
    }
}