* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-scroll {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-content {
    flex: 1 0 auto;
}

body.home-scroll-under-header {
    height: 100vh;
    overflow: hidden;
}

body.home-scroll-under-header .page-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative; /* Ensure z-index works if needed */
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d3a9; /* Doctoralia-like green/teal */
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 22px;
    flex: 1;
    min-width: 0;
}

.nav-section {
    display: flex;
    align-items: center;
}

.nav-section--main {
    flex-wrap: wrap;
    gap: 10px 22px;
    min-width: 0;
}

.nav-section--user {
    gap: 12px;
    justify-content: flex-end;
    min-width: 0;
}

.nav-links--admin {
    display: grid;
    grid-template-columns: 1fr minmax(0, clamp(520px, 60vw, 900px)) auto;
    column-gap: 22px;
    row-gap: 10px;
    align-items: center;
    justify-content: stretch;
}

.nav-links--admin::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
}

.nav-links--admin .nav-section--main {
    grid-column: 2;
    justify-content: center;
}

.nav-links--admin .nav-section--user {
    grid-column: 3;
    justify-self: end;
    white-space: nowrap;
}

.nav-links a {
    margin: 0;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    position: relative; /* Anchor for badge */
}

@media screen and (min-width: 769px) {
    .nav-links a:not(.btn-book) {
        padding-bottom: 8px;
    }

    .nav-links a:not(.btn-book)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2px;
        height: 2px;
        border-radius: 999px;
        background: #00d3a9;
        transform: scaleX(0);
        transform-origin: center;
        opacity: 0;
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .nav-links a:not(.btn-book):hover::after,
    .nav-links a:not(.btn-book).is-active::after {
        transform: scaleX(1);
        opacity: 1;
    }

    .nav-links span.user-greeting {
        padding-bottom: 8px;
        line-height: 1.2;
    }
}

.nav-links a.nav-link-highlight {
    color: #00d3a9;
    font-weight: 800;
}

.nav-links a.nav-link-highlight:hover {
    color: #00a487;
}

.nav-links span.user-greeting {
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    max-width: clamp(60px, 10vw, 160px);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (min-width: 769px) {
    .nav-section--user {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .nav-section--user a {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-links span.user-greeting {
        flex: 0 1 auto;
    }
}

@media screen and (min-width: 992px) {
    .nav-links--logged-in:not(.nav-links--admin) {
        display: grid;
        grid-template-columns: 1fr minmax(0, clamp(520px, 56vw, 860px)) auto;
        column-gap: 22px;
        row-gap: 10px;
        align-items: center;
        justify-content: stretch;
    }

    .nav-links--logged-in:not(.nav-links--admin)::before {
        content: "";
        grid-column: 1;
        grid-row: 1;
    }

    .nav-links--logged-in:not(.nav-links--admin) .nav-section--main {
        grid-column: 2;
        justify-content: center;
    }

    .nav-links--logged-in:not(.nav-links--admin) .nav-section--user {
        grid-column: 3;
        justify-self: end;
        white-space: nowrap;
    }
}

@media screen and (min-width: 1200px) {
    .navbar {
        flex-wrap: nowrap;
    }

    .nav-links {
        flex-wrap: nowrap;
    }

    .nav-section--main {
        flex-wrap: nowrap;
    }

    .nav-section--main a {
        white-space: nowrap;
    }
}

@media screen and (max-width: 1100px) and (min-width: 768px) {
    .nav-links {
        gap: 8px 14px;
    }

    .nav-section--main {
        gap: 8px 14px;
    }
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.cookie-banner-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 14px 16px;
    padding-right: 56px;
    display: flex;
    gap: 12px;
    align-items: center;
    pointer-events: auto;
    position: relative;
}

.cookie-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9f7f4;
    color: #00d3a9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.cookie-banner-text {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.cookie-link {
    color: #00a487;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.cookie-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    position: absolute;
    top: 8px;
    right: 8px;
}

@media screen and (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        padding-right: 56px;
    }
    .cookie-buttons {
        justify-content: flex-end;
        margin-left: 0;
        margin-top: 8px;
    }
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.4s;
}

.notification-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -20px;
    min-width: 12px;
    text-align: center;
    line-height: 1;
}

.nav-links--admin .notification-badge {
    top: -14px;
    right: -18px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        background-color: #fff;
        flex-direction: column;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
        border-radius: 0 0 8px 8px;
        overflow: hidden;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links--admin {
        display: none;
    }

    .nav-links--admin.active {
        display: flex;
    }

    .nav-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-section--user {
        order: -1;
    }

    .nav-links a, .nav-links span.user-greeting {
        margin: 0;
        text-align: left;
        width: 100%;
        display: block; /* Full width tap target */
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
        box-sizing: border-box;
        transition: background-color 0.2s;
    }

    .nav-links a:hover {
        background-color: #f8f9fa;
        color: #00d3a9;
    }
    
    .nav-links span.user-greeting {
        background-color: #e9ecef;
        font-weight: bold;
        color: #333;
        font-size: 0.9rem;
    }

    /* Notification badge adjustment for mobile */
    .notification-badge {
        position: static;
        display: inline-block;
        margin-left: 10px;
        vertical-align: middle;
        background-color: #ff0066; /* More vibrant color */
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Mobile adjustments for Search Box */
    .search-box {
        flex-direction: column;
        padding: 15px;
    }

    .search-box input, .search-box select, .btn-search, .location-input-wrapper {
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box; /* Garante que padding não estoure a largura */
    }

    .btn-search {
        margin-bottom: 0;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    /* Mobile adjustments for Specialty Cards */
    .specialty-card {
        width: calc(50% - 10px); /* 2 cards per row on mobile */
        padding: 15px;
    }

    /* Mobile adjustments for Doctor Cards */
    .card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px !important; /* Reduce padding on mobile */
    }

    .card img {
        margin-bottom: 15px;
    }

    .card-actions {
        width: 100%;
    }

    .btn-book {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* CRM Group Mobile */
    .crm-group {
        flex-direction: column;
    }
    .crm-group select, .crm-group input {
        width: 100% !important;
    }
}

.crm-group {
    display: flex;
    gap: 5px;
}

.hero {
    background: linear-gradient(135deg, #00d3a9 0%, #00b395 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-search-caption {
    margin: 14px auto 0;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: center;
}

.search-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-box input:first-child {
    flex: 3; /* Mais espaço para busca de especialista */
}

.location-input-wrapper {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
}

.location-input-wrapper input {
    width: 100%;
    padding-right: 40px !important; /* Espaço para o botão de localização */
}

.location-input-wrapper #geoBtn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #00d3a9;
    cursor: pointer;
    font-size: 1.2rem;
    height: 100%;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0 5px;
    transition: color 0.3s;
}

.location-input-wrapper #geoBtn.active {
    color: #198754;
}

.geo-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 6px;
}
.geo-hint.error {
    color: #dc3545;
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input-wrapper .form-control {
    width: 100%;
    padding-right: 40px;
    cursor: pointer;
}

.date-input-wrapper .calendar-icon {
    position: absolute;
    right: 10px;
    color: #00d3a9;
    font-size: 1rem;
    pointer-events: none;
}

.search-box input, .search-box select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    height: 50px; /* Altura uniformizada */
    box-sizing: border-box;
}

.btn-search {
    height: 50px; /* Altura uniformizada */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff0066; /* Accent color */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.btn-search i {
    margin-right: 10px;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
}

.search-result-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 10px;
}

.search-result-row .card {
    margin-bottom: 10px;
}

.card-main {
    flex: 1.3;
}

.card-calendar {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 420px;
}

/* Generic utility to override flex card behavior */
.card-block {
    display: block !important;
}

.card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.card-info {
    flex: 1;
}

.card-main .card-info {
    display: flex;
    flex-direction: column;
}

.card-main .card-info .card-actions-inline {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
}

.card-main .card-info .card-actions-inline .btn-book {
    margin-top: 0;
}

.card-info h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.card-info p {
    margin: 5px 0;
    color: #666;
}

.btn-book {
    background-color: #00d3a9;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.btn-book:hover {
    background-color: #00b395;
}

.btn-book-agendar {
    background-color: #1a73e8;
    color: rgba(255, 255, 255, 1);
}

.btn-book-agendar:hover {
    background-color: #1664d3;
}

.card-calendar .btn-book {
    margin-top: 12px;
    align-self: flex-end;
}

/* Mini Calendar (Search Results) */
.mini-cal-card {
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-cal-card.mc-week-shifted .mc-day {
    background: rgba(255, 243, 205, 0.92);
    color: #7a4b00;
    box-shadow: 0 1px 2px rgba(122, 75, 0, 0.10);
    border: 1px solid rgba(255, 193, 7, 0.45);
}

.mc-empty-state.has-next .mc-empty-text {
    font-weight: 800;
    color: #0f172a;
}

.card-actions .btn-book {
    align-self: stretch;
    text-align: center;
}

.mc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mc-prev, .mc-next {
    border: none;
    background: #e8f0fe;
    color: #1a73e8;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mc-prev:hover, .mc-next:hover {
    background: #1a73e8;
    color: #fff;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.35);
}

.mc-days {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    font-size: 0.9rem;
    color: #495057;
    text-align: center;
}

.mc-day {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 4px 6px;
    font-weight: 600;
    color: #1f2933;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-grid {
    display: grid;
    grid-template-rows: repeat(4, auto);
    gap: 4px;
    flex: 1;
    padding: 0 40px;
    box-sizing: border-box;
}

.mc-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.mc-slot {
    min-height: 28px;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mc-slot.mc-empty {
    background: #fff;
}

.mc-slot.mc-empty i {
    font-size: 0.7rem;
    color: #f28b82;
}

.mc-time {
    background: #e9f7ef;
    color: #155724;
    border: 1px solid #155724;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.mc-time:hover {
    background: #155724;
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 87, 36, 0.35);
    transform: translateY(-1px);
}

.mc-time-unavailable {
    background: transparent;
    color: #c0c4cc;
    cursor: default;
    box-shadow: none;
    border-color: #dadce0;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.mc-time-unavailable:hover {
    background: #ffe3e3;
    color: #d93025;
    border-color: #f28b82;
}

.mc-time-particular {
    background: #e9f7ef;
    color: #155724;
    border-color: #155724;
}

.mc-time-particular:hover {
    background: #155724;
    color: #fff;
}

.mc-time-convenio {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #1a73e8;
}

.mc-time-convenio:hover {
    background: #1a73e8;
    color: #fff;
}

.mc-more {
    margin-top: auto;
    padding-top: 8px;
    text-align: center;
}

.mc-more a,
.mc-more button {
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mc-empty-state {
    text-align: center;
    padding: 12px 4px;
    color: #555;
    font-size: 0.9rem;
}

.mc-empty-icon {
    font-size: 1.4rem;
    color: #868e96;
    margin-bottom: 4px;
}

.mc-empty-text {
    margin: 0 0 6px 0;
}

.mc-empty-link {
    color: #00796b;
    font-weight: 600;
    text-decoration: none;
}

.mc-empty-link:hover {
    text-decoration: underline;
}

.card-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    min-width: 280px; /* espaço para mini calendário */
}

.price-wrapper {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.billing-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}

.billing-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    font-size: 0.75rem;
    color: #495057;
    cursor: pointer;
    background-color: #ffffff;
}

.billing-pill-selected {
    border-color: #00d3a9;
    background-color: #e9f7f4;
    color: #00a487;
}

.booking-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    font-size: 0.8rem;
    color: #495057;
    cursor: pointer;
    background-color: #ffffff;
}

.booking-pill-selected {
    border-color: #00d3a9;
    background-color: #e9f7f4;
    color: #00a487;
}

.specialty-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 170px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.specialty-card * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.specialties-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .specialty-card {
        width: calc(50% - 10px);
    }
    .search-result-row {
        flex-direction: column;
    }
}

.specialty-card:hover {
    transform: translateY(-5px);
}

.specialties-tagline {
    margin-top: 8px;
    font-size: 1rem;
    color: #555;
}

.testimonials-section {
    margin-top: 40px;
    text-align: left;
}

.testimonials-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 24px 24px 56px; /* espaço para as bolinhas no rodapé do cartão */
    display: flex;
    flex-direction: column;
    position: relative; /* ancorar as bolinhas ao fundo do cartão */
}

.testimonials-title {
    margin: 0 0 16px 0;
    font-size: 1.4rem;
    color: #333;
    text-align: center;
}

.testimonials-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    flex: 1;
}

.testimonial-slide {
    flex: 0 0 30%;
    max-width: 320px;
    margin: 0;
    padding: 20px 22px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-slide.active {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: #00d3a9;
}

/* Pagination Buttons */
.pagination-btn {
    color: #4285f4;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #4285f4;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
}

.pagination-btn:hover {
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(66, 133, 244, 0.3);
}

.testimonial-slide:focus-within {
    border-color: #00d3a9;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #e9f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d3a9;
    overflow: hidden;
}

.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.testimonial-name {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.testimonial-specialty {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.testimonial-text {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: auto;
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 16px; /* fixa na parte inferior do cartão */
}

.testimonial-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #ced4da;
    cursor: pointer;
    padding: 0;
}

.testimonial-dots button.active {
    background-color: #00d3a9;
}

@media screen and (max-width: 768px) {
    .testimonials-slider {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .testimonial-slide {
        max-width: 100%;
    }
}

.management-section {
    max-width: 1400px;
    margin: 22px auto 0;
    text-align: left;
}

.management-banner {
    background: transparent;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 22px 30px 30px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: stretch;
    overflow: hidden;
}

.management-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 211, 169, 0.14);
    color: #006b57;
    font-weight: 900;
    letter-spacing: 0.04em;
    font-size: 0.86rem;
}

.management-kicker--headline {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin: 10px 0 0;
    align-self: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #00d3a9;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.management-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.management-heading {
    margin: 12px 0 10px 0;
    font-size: 2.05rem;
    line-height: 1.1;
    color: #0f172a;
    text-align: center;
}

.management-subtitle {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 1.02rem;
    max-width: 560px;
}

.management-actions {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.management-actions .btn-book {
    margin-top: 0;
    border-radius: 999px;
    padding: 10px 16px;
}

.management-pills {
    margin-top: 26px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.management-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}

.management-pill i {
    color: #00d3a9;
}

.management-media {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.management-legacy {
    text-align: center;
    font-weight: 500;
    color: #0f172a;
    margin-top: 18px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.management-mock {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 340px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 211, 169, 0.55) 0%, rgba(0, 211, 169, 0) 55%),
        radial-gradient(circle at 80% 20%, rgba(26, 115, 232, 0.35) 0%, rgba(26, 115, 232, 0) 60%),
        linear-gradient(135deg, rgba(120, 87, 70, 0.55) 0%, rgba(120, 87, 70, 0.15) 55%, rgba(255, 255, 255, 0.28) 100%),
        #c7a48e;
    overflow: hidden;
}

.management-ui {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.management-ui-chip {
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
}

.management-ui-chip.is-active {
    background: rgba(0, 211, 169, 0.55);
}

.management-ui-window {
    display: flex;
    gap: 8px;
    align-items: center;
}

.management-ui-body {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.management-ui-line {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
}

.management-ui-line:nth-child(1) {
    width: 62%;
}

.management-ui-line:nth-child(2) {
    width: 78%;
}

.management-ui-line:nth-child(3) {
    width: 56%;
}

.management-ui-graph {
    width: 100%;
    height: 90px;
    display: block;
    margin-top: 10px;
}

.management-ui--progress {
    left: 18px;
    top: 18px;
    width: 90%;
    max-width: 540px;
    padding: 14px 14px 12px;
}

.management-ui-title {
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
    text-align: left;
}

.management-ui-progress-title {
    margin-top: 10px;
    font-weight: 800;
    color: #0f172a;
    text-align: right;
    font-size: 1.05rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.management-ui-progress-title i {
    color: #00d3a9;
}

.management-ui--patients {
    left: 50%;
    top: 150px;
    transform: translateX(-22%);
    width: 320px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.88);
}

.management-ui-person {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.management-ui-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 211, 169, 0.22);
}

.management-ui-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    flex: 1;
}

.management-ui--schedule {
    left: 18px;
    bottom: 18px;
    width: 250px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
}

.management-ui-schedule-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.management-ui-schedule-title i {
    color: #00d3a9;
    font-size: 1.1rem;
    margin-top: 2px;
}

.management-ui-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.86rem;
}

.management-ui-schedule-list li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    color: rgba(15, 23, 42, 0.8);
}

.management-ui-schedule-list span {
    color: rgba(15, 23, 42, 0.75);
    font-weight: 900;
}

.management-ui--finance {
    right: 18px;
    bottom: 18px;
    width: 360px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.84);
}

.management-ui-finance-title {
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.management-ui-finance-grid {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 12px;
    align-items: stretch;
}

.management-ui-finance-bars {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.75);
    padding: 10px;
}

.management-ui-bars {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    align-items: end;
    height: 100px;
}

.management-ui-bars span {
    display: block;
    border-radius: 8px;
}

.management-ui-bars span.g {
    background: rgba(0, 211, 169, 0.85);
    height: 88%;
}

.management-ui-bars span.b {
    background: rgba(26, 115, 232, 0.85);
    height: 64%;
}

.management-ui-bars span:nth-child(1) { height: 78%; }
.management-ui-bars span:nth-child(2) { height: 56%; }
.management-ui-bars span:nth-child(3) { height: 48%; }
.management-ui-bars span:nth-child(4) { height: 42%; }
.management-ui-bars span:nth-child(5) { height: 92%; }
.management-ui-bars span:nth-child(6) { height: 72%; }
.management-ui-bars span:nth-child(7) { height: 86%; }
.management-ui-bars span:nth-child(8) { height: 70%; }

.management-ui-finance-legend {
    margin-top: 10px;
    display: flex;
    gap: 14px;
    color: rgba(15, 23, 42, 0.75);
    font-weight: 800;
    font-size: 0.82rem;
}

.management-ui-finance-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: -1px;
}

.management-ui-finance-legend .dot-g { background: rgba(0, 211, 169, 0.9); }
.management-ui-finance-legend .dot-b { background: rgba(26, 115, 232, 0.9); }

.management-ui-finance-side {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.75);
    padding: 10px;
    display: grid;
    gap: 10px;
}

.management-ui-finance-metric .k {
    color: rgba(15, 23, 42, 0.7);
    font-weight: 800;
    font-size: 0.78rem;
}

.management-ui-finance-metric .v {
    color: #0f172a;
    font-weight: 900;
    font-size: 1.05rem;
}

@media screen and (max-width: 900px) {
    .management-banner {
        grid-template-columns: 1fr;
    }

    .management-mock {
        max-width: 520px;
    }
}

@media screen and (max-width: 520px) {
    .management-heading {
        font-size: 1.6rem;
    }

    .management-kicker--headline {
        font-size: 0.95rem;
    }

    .management-mock {
        height: 360px;
    }

    .management-ui--progress {
        left: 12px;
        top: 12px;
        width: calc(100% - 24px);
    }

    .management-ui-progress-title {
        font-size: 0.95rem;
    }

    .management-ui--patients {
        left: 50%;
        top: 160px;
        transform: translateX(-50%);
        width: 80%;
    }

    .management-ui--schedule {
        left: 12px;
        bottom: 12px;
        width: 56%;
    }

    .management-ui--finance {
        right: 12px;
        bottom: 12px;
        width: 42%;
        padding: 12px;
    }

    .management-ui-finance-grid {
        grid-template-columns: 1fr;
    }

    .management-ui-finance-side {
        display: none;
    }
}

/* Back Button Style */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 50px; /* Rounded pill shape */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-back:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    color: #00d3a9; /* Brand color on hover */
    transform: translateX(-5px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-back i {
    font-size: 1rem;
}

/* Review Action Buttons */
.btn-approve, .btn-delete {
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s;
}

.btn-approve {
    background-color: #28a745;
}

.btn-approve:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
}

.btn-delete:hover {
    background-color: #c82333;
}

.plan-payment-wrapper {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

.plan-payment-card {
    display: block;
    padding: 24px;
}

.plan-payment-header {
    margin-bottom: 24px;
}

.plan-payment-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #212529;
}

.plan-payment-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 0.98rem;
}

.plan-payment-body {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}

.plan-summary {
    flex: 1;
    min-width: 260px;
}

.plan-summary-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px 20px;
}

.plan-summary-name {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.plan-summary-text {
    margin: 0 0 12px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.plan-summary-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-summary-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.plan-summary-price-period {
    font-size: 0.95rem;
    color: #6c757d;
}

.plan-payment-methods {
    flex: 1.2;
    min-width: 260px;
}

.plan-payment-methods h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.plan-payment-description {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.plan-payment-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #6c757d;
}

.plan-payment-error {
    margin: 0 0 10px 0;
    color: #dc3545;
    font-size: 0.95rem;
}

.plan-payment-link-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    background-color: #ffffff;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan-payment-link-back:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #212529;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.about-hero {
    background: linear-gradient(135deg, #00d3a9 0%, #00b395 100%);
    color: #fff;
    padding: 50px 16px;
    text-align: center;
}

.about-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.about-hero h1 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
}

.about-hero p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

.about-card {
    padding: 28px;
    display: block;
}

.about-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.about-card-text,
.about-card-features {
    flex: 1;
}

.about-card-text {
    display: flex;
    flex-direction: column;
}

.about-card p {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
}

.about-main-text {
    margin-bottom: 24px;
    flex: 1;
    text-align: justify;
}

.about-main-initial {
    font-size: 1.8em;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.about-feature {
    text-align: center;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.about-feature i {
    font-size: 2rem;
    color: #00d3a9;
    margin-bottom: 10px;
}

.about-feature h3 {
    margin: 8px 0;
    font-size: 1.1rem;
    color: #333;
}

.about-feature p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.about-cta {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.about-cta-bottom {
    justify-content: center;
    text-align: center;
}

.about-cta-card {
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .about-layout {
        flex-direction: column;
    }
    .about-hero {
        padding: 36px 16px;
    }
    .about-hero h1 {
        font-size: 1.8rem;
    }
    .about-hero p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .plan-payment-wrapper {
        margin: 20px auto 30px auto;
        padding: 0 16px;
    }

    .plan-payment-card {
        padding: 18px;
    }

    .plan-payment-title {
        font-size: 1.5rem;
    }

    .plan-payment-body {
        flex-direction: column;
    }
}

/* Form Styles (Login & Admin) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Important for padding */
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #00d3a9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 211, 169, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Form Layout Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
}

.form-col {
    flex: 1;
    min-width: 250px;
}

.form-col.wide {
    flex: 2;
}

/* Doctor Profile Layout */
.doctor-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-main {
    flex: 2;
    min-width: 0; /* Prevent overflow issues */
}

.profile-sidebar {
    flex: 1;
    position: sticky;
    top: 20px;
    min-width: 280px; /* Ensure sidebar isn't too squashed */
}

.profile-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

/* Doctor Profile Specifics */
.doctor-header-card {
    align-items: flex-start;
}

.doctor-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.specialty-text {
    font-size: 1.2rem;
    color: #00b395;
    font-weight: 500;
    margin: 5px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px;
}

/* Responsive Styles for Admin & Forms */
@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-col, .form-col.wide {
        flex: 1 1 100%;
        min-width: 100%;
    }

    /* Doctor Profile Mobile Layout */
    .doctor-profile {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        position: static;
        margin-top: 30px;
    }

    /* Responsive Table (Cards view) */
    .responsive-table {
        border: 0;
    }

    .responsive-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .responsive-table tr {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
        display: block;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .responsive-table td {
        border-bottom: 1px solid #eee;
        display: block;
        font-size: 0.9rem;
        text-align: right;
        padding: 12px 15px;
        position: relative;
    }

    .responsive-table td:last-child {
        border-bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch; /* Stretch buttons to full width */
    }

    .responsive-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        color: #555;
    }
    
    .responsive-table .btn-book {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none; /* Toggled via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Prevent touching edges on mobile */
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 90vh; /* Prevent overflow on small height screens */
    overflow-y: auto; /* Scroll if needed */
}

.modal-close {
    appearance: none;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.modal-close:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.12);
}

.modal-close:active {
    transform: scale(0.98);
}

.modal-close:focus {
    outline: none;
}

.modal-close:focus-visible {
    outline: 3px solid rgba(0, 211, 169, 0.35);
    outline-offset: 2px;
}

.typeahead-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 6px;
    z-index: 3000;
    max-height: 320px;
    overflow: auto;
}

.typeahead-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}

.typeahead-item:hover {
    background: rgba(15, 23, 42, 0.06);
}

.typeahead-item:focus {
    outline: none;
}

.typeahead-item:focus-visible {
    outline: 3px solid rgba(0, 211, 169, 0.35);
}

.typeahead-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    background: #f1f5f9;
    flex: 0 0 auto;
}

.typeahead-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.typeahead-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.typeahead-meta {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Mobile adjustments for Modal */
@media screen and (max-width: 480px) {
    .modal-content {
        padding: 15px;
    }
    .modal-actions {
        flex-direction: column;
    }
    .modal-actions button {
        width: 100%;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

.site-footer.minimal-footer {
    padding: 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #00d3a9; /* Brand color */
    font-weight: 600;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    background-color: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.social-icons a:hover {
    background-color: #00d3a9;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
    }
    
    .footer-col {
        min-width: 40%;
        flex: 1 1 40%;
    }
}

/* Pricing Page Styles */
.pricing-header {
    text-align: center;
    margin-bottom: 80px;
}

.pricing-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.pricing-header p {
    color: #666;
    font-size: 1.1rem;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Responsive wrapping */
    align-items: stretch; /* Cards same height */
}

.pricing-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px; /* Fixed width for desktop */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border-top: 5px solid #ddd; /* Default top border */
    overflow: hidden;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.plan-Basic {
    border-top-color: #6c757d; /* Grey */
}

.pricing-card.plan-plus {
    border-top-color: #00d3a9; /* Brand Green */
    transform: scale(1.05); /* Slightly larger */
    z-index: 1;
    border: 1px solid #00d3a9; /* Full border for highlighted */
    border-top-width: 5px;
}

.pricing-card.plan-plus:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card.plan-vip {
    border-top-color: #ffc107; /* Gold */
}

.pricing-card-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pricing-card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.pricing-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-description {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
    min-height: 40px; /* Align prices */
}

.pricing-price {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-price .period {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.pricing-price .price-value-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.pricing-price .value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.pricing-price .period-monthly {
    font-size: 0.9rem;
    color: #666;
}

.btn-plan {
    display: block;
    text-align: center;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.btn-outline {
    border: 2px solid #00d3a9;
    color: #00d3a9;
    background: transparent;
}

.btn-outline:hover {
    background: #00d3a9;
    color: white;
}

.btn-filled {
    background: #00d3a9;
    color: white;
    border: 2px solid #00d3a9;
}

.btn-filled:hover {
    background: #00b395;
    border-color: #00b395;
}

.pricing-features-label {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #333;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li i {
    color: #00d3a9;
}

/* Responsive Pricing */
@media (max-width: 900px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    .pricing-card {
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
    }

    .pricing-card.plan-plus {
        transform: none; /* Reset scale on mobile */
    }
    
    .pricing-card.plan-plus:hover {
        transform: translateY(-5px);
    }
}

/* Phone Icon Styles */
.phone-icon-mobile {
    display: none;
    margin-left: 8px;
    color: #0d6efd;
    text-decoration: none;
    font-size: 1.1rem;
    vertical-align: middle;
}

@media screen and (max-width: 768px) {
    .phone-icon-mobile {
        display: inline-block;
    }
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

.validate-doctor-page {
    margin-top: 20px;
}

.validate-doctor-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.validate-doctor-title {
    margin: 0;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.validate-doctor-title i {
    color: #00d3a9;
}

.btn-book.validate-doctor-back {
    background-color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-book.validate-doctor-back:hover {
    background-color: #5c636a;
}

.validate-doctor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.validate-status-card {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #ffeeba;
    background: #fff3cd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.validate-status-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.validate-status-links {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.validate-status-link {
    font-weight: 800;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.validate-status-link:hover {
    border-bottom-color: currentColor;
}

.validate-status-card--approved {
    background: #d4edda;
    border-color: #c3e6cb;
}

.validate-status-card--rejected {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.validate-status-label {
    font-weight: 900;
    margin-bottom: 0;
    color: #856404;
}

.validate-status-card--approved .validate-status-label,
.validate-status-card--approved .validate-status-value,
.validate-status-card--approved .validate-status-meta {
    color: #155724;
}

.validate-status-card--rejected .validate-status-label,
.validate-status-card--rejected .validate-status-value,
.validate-status-card--rejected .validate-status-meta {
    color: #721c24;
}

.validate-status-value {
    font-weight: 900;
    font-size: 1.1rem;
    color: #856404;
}

.validate-status-meta {
    margin-top: 14px;
    color: #856404;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: baseline;
}

.validate-status-meta-label {
    font-weight: 800;
}

.validate-details-card {
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.validate-details-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.validate-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eef2f7;
    background: #e9ecef;
}

.validate-sections {
    flex: 1 1 320px;
    min-width: 260px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.validate-section-title {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 900;
    color: #00856f;
}

.validate-section-title i {
    color: #00d3a9;
}

.validate-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.validate-field-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.validate-field-value {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    word-break: break-word;
}

.validate-field-value--strong {
    font-weight: 900;
}

.validate-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

.validate-plan-badge-bar {
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: #00d3a9;
}

.validate-plan-badge-text {
    font-weight: 900;
    color: #00856f;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.validate-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

.validate-actions form {
    margin: 0;
}

.validate-approve-form {
    display: block;
}

.validate-enrich {
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px;
}

.validate-enrich-title {
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.validate-enrich-source {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.validate-enrich-sourceField {
    flex: 1 1 320px;
    min-width: 220px;
}

.btn-book.validate-enrich-fetch {
    margin-top: 0;
    height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.validate-enrich-status {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.validate-enrich-status[data-kind="ok"] {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validate-enrich-status[data-kind="error"] {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validate-enrich-status[data-kind="loading"] {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.validate-enrich-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.validate-enrich-field {
    min-width: 0;
}

.validate-enrich-field--wide {
    grid-column: 1 / -1;
}

.validate-enrich-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 6px;
    font-weight: 700;
}

.validate-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.validate-btn {
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.validate-btn:active {
    transform: translateY(1px);
}

.validate-btn--danger-outline {
    background: #ffffff;
    color: #dc3545;
    border-color: #dc3545;
}

.validate-btn--danger-outline:hover {
    background: #dc3545;
    color: #ffffff;
}

.validate-btn--success {
    background: #28a745;
    color: #ffffff;
    border-color: #28a745;
}

.validate-btn--success:hover {
    background: #218838;
    border-color: #1e7e34;
}

@media (max-width: 900px) {
    .validate-sections {
        grid-template-columns: 1fr;
    }

    .validate-enrich-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .validate-details-card {
        text-align: left;
    }
}
