.det-appointment-form-style1 {
    margin: 0 auto -120px;
}
.det-header {
    background-color: #2cb4af;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 180, 219, 0.2);
}

.det-logo i {
    font-size: 1.8rem;
}

.det-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.det-nav-links {
    display: flex;
    gap: 1.5rem;
}

.det-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.det-nav-links a:hover {
    opacity: 0.8;
}

.det-user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.det-btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.det-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.det-btn-primary {
    background: linear-gradient(180deg, #2dc97c 0%, #138f82 100%);
    color: white;
    border: none;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.det-btn-primary:hover {
    background-color: #0082ad;
}

/* Search Bar */
.det-search-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
    border-radius: 12px;
    padding: 1rem 1.8rem;
    margin: 1.5rem 0 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.1);
    border: 1px solid rgba(0, 180, 219, 0.15);
}

/* ===============================
   HEADER SINGLE-LINE ALIGNMENT
================================ */

.det-search-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

/* LEFT: favicon + procedure */
.det-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 260px;
}

.det-favicon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffeb3b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.det-favicon img {
    width: 22px;
    height: 22px;
}

/* Procedure text */
.det-procedure-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.det-procedure-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ===============================
   FILTERS – COMPACT
================================ */

.det-search-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.det-filter-select {
    min-width: 140px;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
}

/* ===============================
   INLINE PRICE (SINGLE LINE)
================================ */

.det-inline-price-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.8rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.det-inline-price-summary i {
    color: #16a34a;
    font-size: 0.9rem;
}

.det-inline-price-summary .price-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #166534;
}

.det-inline-price-summary .price {
    font-weight: 700;
    font-size: 0.9rem;
}

.det-inline-price-summary .price.low {
    color: #16a34a;
}

.det-inline-price-summary .price.high {
    color: #dc2626;
}

.det-inline-price-summary .dash {
    color: #64748b;
}

/* ===============================
   RESPONSIVE SAFETY
================================ */

@media (max-width: 1200px) {
    .det-search-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .det-inline-price-summary {
        order: 3;
        width: fit-content;
    }
}


.det-search-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.det-filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.det-filter-item label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.det-filter-select {
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: white;
    color: #334155;
    min-width: 160px;
    transition: border-color 0.3s;
}

.det-filter-select:focus {
    outline: none;
    border-color: #2cb4af;
    box-shadow: 0 0 0 3px rgba(0, 180, 219, 0.1);
}

/* Main Content */
.det-main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

/* Procedure Details */
.det-procedure-details {
    background-color: white;
    border-radius: 12px;
    padding: 1rem 2rem;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.08);
    border: 1px solid rgba(0, 180, 219, 0.1);
}

.det-procedure-code {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    background-color: #f0f9ff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border-left: 3px solid #4c9970;
}
.det-procedure-title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
}

.det-procedure-description {
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.7;
}

.det-read-more {
    color: #2cb4af;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.det-read-more:hover {
    color: #0099c8;
}

.det-results-info {
    background: linear-gradient(to right, #f0f9ff, #e6f7ff);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    border-left: 4px solid #2cb4af;
}

/* Provider Cards */
.det-provider-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.8rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.det-provider-card:hover {
    box-shadow: 0 10px 25px rgba(0, 180, 219, 0.12);
    transform: translateY(-3px);
    border-color: rgba(0, 180, 219, 0.3);
}

.det-provider-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #4e9a71;
}

.det-provider-name {
    color: #4f9a71;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.det-provider-type {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.det-provider-type i {
    color: #4f9a71;
}

.det-provider-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.det-provider-location i {
    color: #4f9a71;
}

.det-provider-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.det-price-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2, 4rem;
}

.det-price-badge {
    color: #047857;
    padding: 0.2rem 0rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    align-items: center;
    min-width: 120px;
}

.det-price-badge i {
    font-size: 0.9rem;
    color: #4f9a71;
}

.det-price-badge-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
    font-weight: 500;
}

.det-insurance-price {
    color: #0369a1;
    padding: 0.2rem 0rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    align-items: center;
    min-width: 120px;
}

.det-insurance-price i {
    font-size: 0.9rem;
    color: #4f9a71;
}

.det-insurance-price-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
    font-weight: 500;
}

.det-provider-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.det-facility-badge {
    background-color: #f0f9ff;
    color: #4f9a71;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.det-facility-badge i {
    font-size: 0.7rem;
}

/* Sidebar */
.det-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.det-price-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.08);
    border: 1px solid rgba(0, 180, 219, 0.1);
}

.det-price-summary h3 {
    color: #4f9a71;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.det-price-summary h3 i {
    color: #4f9a71;
}

.det-midpoint-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.8rem;
}

.det-price-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #4f9a71;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 180, 219, 0.1);
}

.det-price-label {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 250px;
}

.det-price-range {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.det-low-price,
.det-high-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    width: 48%;
}

.det-low-price {
    background-color: rgba(16, 185, 129, 0.08);
}

.det-high-price {
    background-color: rgba(239, 68, 68, 0.08);
}

.det-low-price .det-price-value {
    color: #10b981;
    font-size: 2rem;
}

.det-high-price .det-price-value {
    color: #ef4444;
    font-size: 2rem;
}

.det-range-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.det-insurance-toggle {
    background: linear-gradient(135deg, #f8fdff 0%, #f0f9ff 100%);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.08);
    border: 1px solid rgba(0, 180, 219, 0.1);
}

.det-toggle-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.det-toggle-header i {
    color: #4f9a71;
}

.det-toggle-header h3 {
    color: #4f9a71;
    font-size: 1.4rem;
    font-weight: 700;
}

.det-toggle-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 32px;
    margin-bottom: 1rem;
}

.det-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.det-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 34px;
}

.det-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .det-slider {
    background-color: #4f9a71;
}

input:checked + .det-slider:before {
    transform: translateX(32px);
}

.det-insurance-status {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #334155;
    font-size: 1.1rem;
}

.det-platform-resources {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.08);
    border: 1px solid rgba(0, 180, 219, 0.1);
}

.det-platform-resources h3 {
    color: #4f9a71;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.det-resource-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
    padding-left: 0.5rem;
}

.det-resource-link:hover {
    color: #4f9a71;
    background-color: rgba(0, 180, 219, 0.05);
    padding-left: 1rem;
}

.det-resource-link i {
    color: #4f9a71;
    width: 20px;
}

.det-related-procedures {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.08);
    border: 1px solid rgba(0, 180, 219, 0.1);
}

.det-related-procedures h3 {
    color: #368368;
    margin-bottom: 1.5rem;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.det-related-procedure {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e1e1e1;
}

.det-related-procedure:last-child {
    border-bottom: none;
}

.det-related-name {
    font-weight: 500;
    color: #475569;
}

.det-related-price {
    font-weight: 600;
    color: #2cb4af;
}

/* Footer */
.det-footer {
    background-color: #2cb4af;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.det-footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.det-footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.det-footer-links {
    list-style: none;
}

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

.det-footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.det-footer-links a:hover {
    color: white;
}

.det-copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* Appointment Modal */
.det-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.det-modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.det-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.det-modal-close:hover {
    color: #334155;
}

.det-modal h3 {
    color: #368368;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.det-form-group {
    margin-bottom: 1rem;
}

.det-form-group label {
    display: block;
    margin-bottom: 0.1rem;
    font-weight: 600;
    color: #475569;
}

.det-form-group input,
.det-form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.det-form-group input:focus,
.det-form-group select:focus {
    outline: none;
    border-color: #2cb4af;
    box-shadow: 0 0 0 3px rgba(0, 180, 219, 0.1);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .det-main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .det-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .det-header-content {
        flex-direction: column;
        gap: 1.2rem;
    }

    .det-nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .det-search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .det-search-filters {
        flex-direction: column;
        width: 100%;
    }

    .det-filter-item {
        width: 100%;
    }

    .det-filter-select {
        width: 100%;
    }

    .det-price-section {
        flex-direction: column;
        gap: 1rem;
    }

    .det-provider-actions {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .det-price-range {
        flex-direction: column;
        gap: 1.5rem;
    }

    .det-low-price,
    .det-high-price {
        width: 100%;
    }

    .det-footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.det-provider-card {
    animation: fadeIn 0.5s ease-out;
}

.det-provider-card:nth-child(1) {
    animation-delay: 0.1s;
}

.det-provider-card:nth-child(2) {
    animation-delay: 0.2s;
}

.det-provider-card:nth-child(3) {
    animation-delay: 0.3s;
}

.det-provider-card:nth-child(4) {
    animation-delay: 0.4s;
}

.toggle-btn {
    padding: 4px 10px;
    margin-top: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn i {
    transition: 0.3s;
}

.toggle-btn.active i {
    transform: rotate(180deg);
}

.toggle-section {
    display: none;
    padding: 12px;
    background: #f4f4f4;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid #ddd;
}

.hospital-title {
    align-items: baseline;
}

.inside-detail {
    padding: 0.6rem 0.8rem;
    background: white;
    border-radius: 10px;
}

.inside-detail h6 {
    font-size: 1rem;
}
/* ============================= */
/* HEADER GRID – CORE SYNC FIX   */
/* ============================= */

.det-search-header {
    display: grid;
    grid-template-columns: 260px 1fr auto;
    align-items: start; /* CRITICAL: sync top alignment */
    gap: 2rem;
}

/* ============================= */
/* PROCEDURE BLOCK (LEFT)        */
/* ============================= */

.det-procedure-code {
    padding: 0.8rem 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #4c9970;
}

.det-procedure-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.det-procedure-code br {
    display: none;
}
.det-procedure-meta {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* .det-procedure-code::after {
    content: "Procedure Code: GA002 · Top 4 results";
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #64748b;
} */

/* ============================= */
/* FILTERS (MIDDLE)              */
/* ============================= */

.det-search-filters {
    display: flex;
    align-items: flex-start; /* CRITICAL: sync with title */
    gap: 1rem;
}

.det-filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 160px;
}

.det-filter-select {
    height: 38px;
}

/* ============================= */
/* PRICE SUMMARY (RIGHT)         */
/* ============================= */

.det-inline-price-summary {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 0.6rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e2e8f0;
    margin-top: 0.2rem; /* micro alignment */
}
.det-inline-price-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: #368368;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
/* Top row: Midpoint */
.price-row-top {
    display: flex;
    justify-content: center;
}

/* Bottom row: Lowest / Highest */
.price-row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.price-item {
    text-align: center;
    min-width: 90px;
}

.price-item .value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.price-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

.price-item .note {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Colors */
.price-item.midpoint .value {
    color: #2cb4af;
}
.price-item.low .value {
    color: #10b981;
}
.price-item.high .value {
    color: #ef4444;
}

.price-item.low .note {
    color: #10b981;
}
.price-item.high .note {
    color: #ef4444;
}

/* ============================= */
/* MOBILE SAFETY                 */
/* ============================= */

@media (max-width: 992px) {
    .det-search-header {
        grid-template-columns: 1fr;
    }

    .det-inline-price-summary {
        border-left: none;
        padding-left: 0;
        margin-top: 1rem;
    }
}

.det-sidebar {
    position: relative;
}

.det-sticky-map {
    position: sticky;
    top: 90px;
    background: #f0f9ff;
    border-left: 4px solid #4e9a71;
    border-radius: 8px;
    padding: 1rem;
}

.det-sticky-map h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2cb4af;
    margin-bottom: 0.6rem;
}

.det-provider-card.active {
        border-color: #408d6c;
    box-shadow: 0 0 0 2px rgb(64 141 108 / 29%);
}

@media (max-width: 992px) {
    .det-sticky-map {
        position: static;
        margin-top: 1rem;
    }
}
.det-procedure-title {
    color: #368368; /* same blue used across price summary */
}
.det-description-text {
    display: -webkit-box; /* legacy WebKit */
    display: box; /* future fallback */

    -webkit-box-orient: vertical;
    box-orient: vertical;

    -webkit-line-clamp: 3; /* WebKit browsers */
    line-clamp: 3; /* standard property */

    overflow: hidden;
    transition: all 0.3s ease;
}

/* Expanded state */
.det-description-text.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}
.det-procedure-description p {
    margin-bottom: 0;   /* REMOVE GAP */
}

.det-read-more {
    margin-top: 6px;    /* OPTIONAL: controlled spacing */
    padding: 0;
    background: none;
    border: none;
    color: #14b8a6;
    font-weight: 600;
    cursor: pointer;
}




/* FORCE single column services list */
.det-provider-facilities {
    display: block !important;
    width: 100%;
}
.det-service-row {
    display: grid;
    grid-template-columns: 1fr 120px; /* FIXED price column */
    align-items: center;
    gap: 16px;

    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}
.det-service-text {
    font-size: 13px;
    font-weight: 400;
    color: #475569;
    line-height: 1.5;
}

.det-service-price {
    text-align: right;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}
/* ============================= */
/* STICKY LAYOUT MODIFICATIONS   */
/* ============================= */

/* Lock the entire page from scrolling */

/* Make the appointment section container full height with flexbox */
.appointment-area {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px); /* Adjust 80px to match your header height */
    overflow: hidden;
}

.appointment-area .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Sticky search container header */
.det-search-container {
    flex-shrink: 0; /* Don't shrink */
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
    border-radius: 12px;
    padding: 1rem 1.8rem;
    margin: 1.5rem 0 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.1);
    border: 1px solid rgba(0, 180, 219, 0.15);
}

/* Main content area with proper flex layout */
.det-main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    flex: 1; /* Take remaining space */
    overflow: hidden; /* Prevent overflow */
    min-height: 0; /* Important for Firefox */
}

/* Scrollable procedure details section */
.det-procedure-details {
    background-color: white;
    border-radius: 12px;
    padding: 1rem 2rem;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.08);
    border: 1px solid rgba(0, 180, 219, 0.1);
    overflow-y: auto; /* Make this scrollable */
    overflow-x: hidden;
    height: 100%; /* Take full height of parent */
    
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgb(54, 131, 104) #f1f5f9;
}

/* Webkit scrollbar styling for procedure details */
.det-procedure-details::-webkit-scrollbar {
    width: 8px;
}

.det-procedure-details::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.det-procedure-details::-webkit-scrollbar-thumb {
    background: #2cb4af;
    border-radius: 10px;
}

.det-procedure-details::-webkit-scrollbar-thumb:hover {
    background: #249894;
}

/* Sticky sidebar */
.det-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    height: 100%; /* Take full height */
    overflow-y: auto; /* Make sidebar scrollable if content overflows */
    overflow-x: hidden;
    position: sticky;
    top: 0;
    
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #4a966f #f1f5f9;
}

/* Webkit scrollbar styling for sidebar */
.det-sidebar::-webkit-scrollbar {
    width: 6px;
}

.det-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.det-sidebar::-webkit-scrollbar-thumb {
    background: #2cb4af;
    border-radius: 10px;
}

.det-sidebar::-webkit-scrollbar-thumb:hover {
    background: #249894;
}

/* Ensure sticky map stays in view within sidebar */
.det-sticky-map {
    position: static; /* Override previous sticky positioning */
    background: #f0f9ff;
    border-left: 4px solid #4e9a71;
    border-radius: 8px;
    padding: 1rem;
}

/* ============================= */
/* RESPONSIVE ADJUSTMENTS        */
/* ============================= */

@media (max-width: 1100px) {
    .det-main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .det-sidebar {
        position: static;
        max-height: 400px; /* Limit sidebar height on mobile */
        order: -1;
    }
    
    .det-procedure-details {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .appointment-area {
        height: calc(100vh - 120px); /* Adjust for mobile header height */
    }
    
    .det-sidebar {
        max-height: 300px;
    }
}

.det-footer {
    display: none; /* Hide footer or handle it differently */
}

/* ============================= */
/* RESPONSIVE DESIGN OVERHAUL    */
/* ============================= */

/* ============================= */
/* TABLET (1100px and below)     */
/* ============================= */

@media (max-width: 1100px) {
    /* Stack layout vertically */
    .det-main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        overflow-y: auto; /* Allow scrolling on tablet */
        overflow-x: hidden;
    }

    /* Make both sections static on tablet */
    .det-procedure-details {
        position: static;
        overflow-y: visible;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .det-sidebar {
        position: static;
        height: auto;
        overflow-y: visible;
        order: -1; /* Show sidebar first on tablet/mobile */
    }

    /* Compact search header */
    .det-search-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .det-inline-price-summary {
        border-left: none;
        padding-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
    }

    /* Make filters full width */
    .det-search-filters {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
    }

    .det-filter-item {
        flex: 1;
        min-width: 140px;
    }
}

/* ============================= */
/* MOBILE (768px and below)      */
/* ============================= */

@media (max-width: 768px) {
    /* Adjust body height for mobile header */
    .appointment-area {
        height: auto; /* Remove fixed height on mobile */
        min-height: calc(100vh - 60px);
    }

    .appointment-area .container {
        height: auto;
        overflow-y: auto;
    }

    /* Allow body scroll on mobile */
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }

    /* Search container adjustments */
    .det-search-container {
        padding: 1rem;
        margin: 1rem 0;
        position: relative; /* Not sticky on mobile */
    }

    .det-search-header {
        gap: 1rem;
    }

    /* Procedure code section */
    .det-procedure-code {
        padding: 0.6rem 0.8rem;
    }

    .det-procedure-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .det-procedure-meta {
        font-size: 0.8rem;
    }

    /* Stack filters vertically on mobile */
    .det-search-filters {
        flex-direction: column;
        gap: 0.8rem;
    }

    .det-filter-item {
        width: 100%;
        min-width: 100%;
    }

    .det-filter-select {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.7rem 0.8rem;
    }

    /* Inline price summary adjustments */
    .det-inline-price-summary {
        padding: 1rem 0;
        margin-top: 1rem;
    }

    .det-inline-price-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .price-row-bottom {
        gap: 0.8rem;
    }

    .price-item .value {
        font-size: 1.1rem;
    }

    .price-item .label,
    .price-item .note {
        font-size: 0.7rem;
    }

    /* Main content on mobile */
    .det-main-content {
        gap: 1rem;
        padding-bottom: 2rem;
    }

    /* Procedure details */
    .det-procedure-details {
        padding: 1rem;
        border-radius: 8px;
    }

    .det-procedure-details h2.det-procedure-title {
        font-size: 1.4rem;
    }

    .det-procedure-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Provider cards on mobile */
    .det-provider-card {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .det-provider-card::before {
        width: 3px;
    }

    .det-provider-name {
        font-size: 20px;
        margin-bottom: 0.5rem;
    }

    .det-provider-type {
        font-size: 0.9rem;
    }

    .det-provider-location {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    /* Price section stacking */
    .det-price-section {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .det-price-badge,
    .det-insurance-price {
        font-size: 0.95rem;
        padding: 0.5rem 0;
        min-width: auto;
    }

    .det-price-badge i,
    .det-insurance-price i {
        font-size: 0.85rem;
    }

    /* Service rows on mobile */
    .det-service-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 8px 0;
    }

    .det-service-text {
        font-size: 0.85rem;
    }

    .det-service-price {
        font-size: 0.9rem;
    }

    /* Provider actions */
    .det-provider-actions {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .det-btn-primary {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    /* Toggle buttons */
    .toggle-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .toggle-section {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Sidebar adjustments */
    .det-sidebar {
        gap: 1rem;
    }

    /* Price summary card */
    .det-price-summary {
        padding: 1.2rem;
        border-radius: 8px;
    }

    .det-price-summary h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .det-midpoint-price {
        padding: 1.2rem 0;
        margin-bottom: 1.2rem;
    }

    .det-price-value {
        font-size: 2.2rem;
    }

    .det-price-label {
        font-size: 0.9rem;
    }

    .det-price-range {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }

    .det-low-price,
    .det-high-price {
        width: 100%;
        padding: 0.8rem;
    }

    .det-low-price .det-price-value,
    .det-high-price .det-price-value {
        font-size: 1.6rem;
    }

    .det-range-label {
        font-size: 0.85rem;
    }

    /* Insurance toggle */
    .det-insurance-toggle {
        padding: 1.2rem;
    }

    .det-toggle-header h3 {
        font-size: 1.2rem;
    }

    .det-insurance-status {
        font-size: 1rem;
    }

    /* Platform resources */
    .det-platform-resources {
        padding: 1.2rem;
    }

    .det-platform-resources h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .det-resource-link {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }

    .det-resource-link:hover {
        padding-left: 0.7rem;
    }

    /* Related procedures */
    .det-related-procedures {
        padding: 1.2rem;
    }

    .det-related-procedures h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .det-related-procedure {
        padding: 0.6rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .det-related-name {
        font-size: 0.9rem;
    }

    .det-related-price {
        font-size: 0.95rem;
    }

    /* Sticky map on mobile */
    .det-sticky-map {
        position: static;
        padding: 1rem;
        margin-top: 0;
    }

    .det-sticky-map h3 {
        font-size: 20px;
        margin-bottom: 0.5rem;
    }

    .det-sticky-map iframe {
        height: 250px;
    }

    /* Modal adjustments for mobile */
    .det-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .det-modal h3 {
        font-size: 1.3rem;
    }

    .det-form-group label {
        font-size: 0.9rem;
    }

    .det-form-group input,
    .det-form-group select {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    /* Header adjustments on mobile */
    .det-header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .det-logo h1 {
        font-size: 1.3rem;
    }

    .det-logo i {
        font-size: 1.5rem;
    }

    .det-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .det-nav-links a {
        font-size: 0.9rem;
    }

    .det-user-actions {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .det-btn-outline {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .det-btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Footer on mobile */
    .det-footer {
        padding: 2rem 0 1.5rem;
    }

    .det-footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .det-footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

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

    .det-footer-links a {
        font-size: 0.9rem;
    }

    .det-copyright {
        margin-top: 2rem;
        padding-top: 1rem;
        font-size: 0.85rem;
    }
}

/* ============================= */
/* SMALL MOBILE (480px and below)*/
/* ============================= */

@media (max-width: 480px) {
    /* Search container */
    .det-search-container {
        padding: 0.8rem;
        margin: 0.5rem 0;
    }

    .det-procedure-title {
        font-size: 1.1rem;
    }

    .det-procedure-meta {
        font-size: 0.75rem;
    }

    /* Price summary values */
    .price-item .value {
        font-size: 1rem;
    }

    .price-item .label,
    .price-item .note {
        font-size: 0.65rem;
    }

    /* Provider cards */
    .det-provider-card {
        padding: 0.8rem;
    }

    .det-provider-name {
        font-size: 1rem;
    }

    .det-provider-type,
    .det-provider-location {
        font-size: 0.8rem;
    }

    /* Service rows */
    .det-service-text {
        font-size: 0.8rem;
    }

    .det-service-price {
        font-size: 0.85rem;
    }

    /* Buttons */
    .det-btn-primary {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Modal */
    .det-modal-content {
        padding: 1.2rem;
    }

    .det-modal h3 {
        font-size: 1.2rem;
    }

    /* Map */
    .det-sticky-map iframe {
        height: 220px;
    }

    /* Sidebar cards */
    .det-price-summary,
    .det-insurance-toggle,
    .det-platform-resources,
    .det-related-procedures {
        padding: 1rem;
    }

    .det-price-summary h3,
    .det-insurance-toggle h3,
    .det-platform-resources h3,
    .det-related-procedures h3 {
        font-size: 1.1rem;
    }
}

/* ============================= */
/* LANDSCAPE MOBILE              */
/* ============================= */

@media (max-width: 768px) and (orientation: landscape) {
    .appointment-area {
        height: auto;
        min-height: 100vh;
    }

    .det-sticky-map iframe {
        height: 200px;
    }
}

/* ============================= */
/* TOUCH DEVICE OPTIMIZATIONS    */
/* ============================= */

@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .det-btn-primary,
    .det-btn-outline,
    .det-schedule-btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
    }

    .det-filter-select {
        min-height: 44px;
    }

    .det-resource-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .toggle-btn {
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .det-provider-card:hover {
        transform: none;
    }

    .det-resource-link:hover {
        padding-left: 0.5rem;
    }

    /* Tap highlight color */
    .det-btn-primary,
    .det-btn-outline,
    .det-schedule-btn,
    .det-filter-select {
        -webkit-tap-highlight-color: rgba(44, 180, 175, 0.2);
    }
}

/* ============================= */
/* IPAD PRO & LARGER TABLETS     */
/* ============================= */

@media (min-width: 769px) and (max-width: 1100px) {
    .det-search-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .det-filter-item {
        width: 100%;
    }

    .det-main-content {
        gap: 2rem;
    }

    .det-procedure-details {
        padding: 1.5rem;
    }
}

/* ============================= */
/* PRINT STYLES                  */
/* ============================= */

@media print {
    body {
        overflow: visible;
        height: auto;
    }

    .det-header,
    .det-footer,
    .det-btn-primary,
    .det-btn-outline,
    .det-schedule-btn,
    .toggle-btn,
    .det-modal {
        display: none;
    }

    .det-main-content {
        grid-template-columns: 1fr;
        overflow: visible;
        height: auto;
    }

    .det-procedure-details,
    .det-sidebar {
        overflow: visible;
        height: auto;
        page-break-inside: avoid;
    }

    .det-provider-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}