html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}





:root {
    --primary-color: #989898;
    --dark-text: #151515;
    --light-text: #5e5e5e;
    --bg-light: #f3f3f3;
    --white: #ffffff;
    --kiner-blue: #0056b3;
    --light-grey: #f4f7f6;
    --border-color: #e1e4e8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

/* Navigation */
header {
    background: var(--white);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Keep content padded while letting header background span full width */

.navbar .container-fluid {
    padding: 0;
}

/* Keep brand and collapse content aligned with page padding */
.navbar .navbar-brand {
    padding-left: 5%;
}

.navbar .navbar-collapse {
    padding-right: 5%;
}

/* Make the nav element grow to fill the full width of the header */
header > nav {
    flex: 1 1 100%;
}

/* Ensure the bootstrap navbar itself spans full width inside header */
.navbar {
    width: 100%;
}

/* Remove bottom shadow on the navbar */
.navbar.box-shadow,
header > nav.box-shadow {
    box-shadow: none !important;
}

.logo img {
    height: 250px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

/* Center the secondary nav and logo on the home page */
.secondary-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

    .secondary-nav .logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .secondary-nav nav ul {
        justify-content: center;
        gap: 2rem;
        margin: 0;
        padding: 0;
    }

    .secondary-nav nav {
        width: 100%;
    }

        /* Remove left margin from the first item (Home) inside the centered secondary nav */
        .secondary-nav nav ul li {
            margin-left: 0;
        }

nav ul li {
    margin-left: 2rem;
}

    nav ul li a {
        text-decoration: none;
        color: var(--dark-text);
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 1px;
        font-weight: 600;
    }

.nav-link-active {
    display: inline-block;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--dark-text);
}

/* Hero Section */
.hero-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 892px;
    max-height: 520px;
}

.hero {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    background-color: var(--bg-light);
    min-height: 0;
    height: min(60vh, 520px);
    width: 50%;
}

.hero-image {
    flex: 0 0 50%;
    min-height: 0;
    height: min(60vh, 520px);
    background: url('https://img1.wsimg.com/isteam/ip/2b99d94e-a94a-4853-be4d-165692067f46/Untitled%20design%20(4).png') no-repeat center center/cover;
    background-size: cover;
}

.hero-content {
    flex: 1 1 100%;
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

/* Smaller subtitle for welcome text */
.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.btn-cta {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

    .btn-cta:hover {
        background: #7a7a7a;
    }

/* Section Styling */
section {
    padding: 4rem 10%;
}

.content-wrap {
    width: 100%;
    max-width: 1036px;
    margin: 0 auto;
}

.intake-form-header {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 22px;
    color: var(--light-text);
    text-transform: uppercase;
}

.sectionHeader {
    font-size: 22px;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.headerBottomMargin {
    margin-bottom: 24px;
}

/* About Section */
.about-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.row-alignLeft {
    width: 100%;
    max-width: 1036px;
    margin: 0 auto;
    text-align: left;
}

    .row-alignLeft .section-title {
        text-align: left;
    }

.about-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 1 1 0;
    min-width: 0;
}

    .about-text p + p {
        margin-top: 1rem;
    }

.about-image {
    flex: 0 0 46%;
}

    .about-image img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

.about-service-image {
    width: 100%;
    max-width: 444px;
    max-height: 300px;
    object-fit: cover;
}

.about-section-secondary .about-container {
    align-items: center;
}

.about-section-secondary .about-image {
    flex: 0 0 44%;
}

.about-section-secondary .about-text {
    flex: 1 1 56%;
}

.about-section-secondary .sectionHeader {
    max-width: 520px;
}

.about-copy {
    color: var(--dark-text);
    padding-left: 1.25rem;
}

    .about-copy li + li {
        margin-top: 0.75rem;
    }

/* Services */
.services-section {
    padding: 5rem 10%;
    background: #fff;
}

.services-shell {
    max-width: 1036px;
    margin: 0 auto;
}

.services-heading {
    display: block;
    margin-bottom: 2.5rem;
}

    .services-heading h2 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: #9a8a7c;
    }

.ourServices-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 444px));
    justify-content: center;
    gap: 2rem;
}

.service-card {
    width: 100%;
    max-width: 444px;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0;
    text-align: center;
}

.service-card-feature {
    max-width: none;
    min-height: 360px;
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f3f3f3;
}

    .service-card-feature h3 {
        margin: 0 0 1.5rem;
        font-family: 'Open Sans', sans-serif;
        font-size: 22px;
        font-weight: 400;
        line-height: 1.2;
    }

    .service-card-feature p {
        margin: 0;
        color: var(--light-text);
        font-size: 0.97rem;
        line-height: 1.65;
    }

/* Services Page Menu Layout */
.services-section-servicesPage {
    padding: 72px 20px 96px;
    background: #fff;
}

.services-shellservicesPage {
    max-width: 1036px;
    margin: 0 auto 0 0;
}

.services-section-servicesPage .row-alignLeft {
    max-width: none;
    margin: 0 0 2.25rem;
}

.services-heading {
    margin-bottom: 0.75rem;
}

    .services-heading > div:first-child {
        font-family: 'Playfair Display', serif;
        font-size: 2.75rem;
        font-weight: 400;
        line-height: 1.1;
        color: #1f1f1f;
    }

.services-shellservicesPage .row-alignLeft > div:last-child p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
}

.services-menuservicesPage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4rem;
    row-gap: 2.75rem;
}

.service-itemservicesPage {
    width: 100%;
    max-width: 448px;
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    color: #1f1f1f;
}

/* Contact Form */
.contact-section {
    background: var(--bg-light);
    min-width: 936px;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    text-align: center;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-form {
    flex: 2 1 500px;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .form-group input, .form-group textarea, .form-group select {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

.intake-form-card {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkbox-option {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0 !important;
    font-size: 0.95rem;
}

    .checkbox-option input {
        width: auto !important;
        padding: 0;
    }

.required-asterisk {
    color: #c62828;
}

.validation-summary,
.field-validation-error {
    color: #c62828;
}

.validation-summary {
    margin-bottom: 1rem;
}

.field-validation-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.validation-summary-valid {
    display: none;
}

.form-row {
    display: grid;
    gap: 1rem;
}

    .form-row.two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-row.three-column {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
}

.office-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 0;
}

.office-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.office-eyebrow {
    margin-bottom: 0.25rem;
    color: var(--light-text);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.office-header h1 {
    margin-bottom: 0;
}

.office-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.office-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-height: 112px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--dark-text);
    text-decoration: none;
    background: var(--white);
}

.office-menu-item:hover,
.office-menu-item:focus {
    color: var(--dark-text);
    text-decoration: none;
    border-color: var(--kiner-blue);
}

.office-menu-item-active {
    border-color: var(--dark-text);
    background: var(--bg-light);
}

.office-menu-item span {
    font-weight: 700;
}

.office-menu-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.office-menu-title {
    display: block;
}

.office-menu-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    fill: var(--kiner-blue);
}

.office-menu-item small {
    color: var(--light-text);
    line-height: 1.5;
}

.office-panel {
    margin-bottom: 2rem;
}

.office-panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.office-panel-header h2 {
    margin-bottom: 0;
}

.office-grid-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.office-grid {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    background: var(--white);
}

.office-grid th,
.office-grid td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.office-grid th {
    background: var(--bg-light);
    color: var(--dark-text);
    font-size: 0.85rem;
    font-weight: 700;
}

.office-grid tbody tr:last-child td {
    border-bottom: none;
}

.office-action-header,
.office-grid td:last-child {
    width: 96px;
    text-align: right;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    background: #e9f7ef;
    color: #1f6f43;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pill-review {
    background: #eef2ff;
    color: #304a9c;
}

.status-pill-scheduled {
    background: #f2f2f2;
    color: #444;
}

.view-btn {
    min-width: 68px;
    min-height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--dark-text);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.view-btn:hover,
.view-btn:focus {
    background: #444;
}

.patient-lookup-form {
    max-width: 720px;
}

.patient-lookup-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    font-weight: 700;
}

.patient-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.patient-search-row input {
    min-height: 44px;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font: inherit;
}

.intake-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intake-detail-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.intake-detail-summary h2 {
    margin-bottom: 0;
}

.intake-detail-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.intake-detail-card {
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
}

.intake-detail-card h3 {
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.intake-card-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.intake-card-list > div {
    display: grid;
    grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.intake-card-list > div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.intake-card-list dt {
    margin-bottom: 0;
    color: var(--light-text);
    font-size: 0.85rem;
    font-weight: 700;
}

.intake-card-list dd {
    margin-bottom: 0;
}

.intake-insurance-card {
    grid-column: 1 / -1;
}

.intake-actions-card {
    grid-column: 1 / -1;
}

.intake-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-action-btn {
    min-width: 150px;
    min-height: 36px;
    padding: 0 1rem;
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.status-action-reviewed {
    background: var(--kiner-blue);
}

.status-action-reviewed:hover,
.status-action-reviewed:focus {
    background: #00458f;
}

.status-action-new {
    background: #1f6f43;
}

.status-action-new:hover,
.status-action-new:focus {
    background: #185735;
}

.status-action-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.status-update-message {
    margin: 0.75rem 0 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

.insurance-card-preview {
    display: block;
    width: min(100%, 680px);
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #222;
    color: #ddd;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero-layout {
        flex-direction: column;
        width: 100%;
        max-width: none;
        max-height: none;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        height: auto;
        width: 100%;
    }

    .hero-image {
        flex: none;
        height: auto;
        width: 100%;
        min-height: 40vh;
    }

    .hero-content {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 3rem 5%;
    }

    .about-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .about-container {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .about-image {
        flex: 1 1 100%;
    }

    .about-service-image {
        max-width: 100%;
        height: auto;
    }

    .services-section {
        padding: 4rem 5%;
    }

    .services-heading h2 {
        font-size: 1.05rem;
    }

    .ourServices-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-section-servicesPage {
        padding: 56px 20px 72px;
    }

    .services-heading > div:first-child {
        font-size: 2.2rem;
    }

    .services-menuservicesPage {
        grid-template-columns: 1fr;
        row-gap: 1.75rem;
    }

    .service-itemservicesPage {
        max-width: 100%;
        font-size: 20px;
    }

    .form-row.two-column,
    .form-row.three-column {
        grid-template-columns: 1fr;
    }

    .office-section {
        padding: 2rem 0;
    }

    .office-menu {
        grid-template-columns: 1fr;
    }

    .office-grid-wrap {
        overflow-x: visible;
        border: none;
    }

    .office-grid {
        min-width: 0;
    }

    .office-grid thead {
        display: none;
    }

    .office-grid,
    .office-grid tbody,
    .office-grid tr,
    .office-grid td {
        display: block;
        width: 100%;
    }

    .office-grid tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
        background: var(--white);
    }

    .office-grid td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .office-grid td::before {
        content: attr(data-label);
        color: var(--light-text);
        font-weight: 700;
    }

    .office-grid td:last-child {
        justify-content: flex-end;
        text-align: right;
        border-bottom: none;
    }

    .patient-search-row {
        grid-template-columns: 1fr;
    }

    .intake-detail-summary {
        flex-direction: column;
    }

    .intake-detail-cards {
        grid-template-columns: 1fr;
    }

    .intake-card-list > div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .service-card-feature {
        min-height: 0;
    }

    section {
        padding: 3rem 5%;
    }
}

.hours-container {
    max-width: 400px; /* Adjust based on your sidebar/footer width */
    margin: 0 auto;
    font-family: sans-serif;
}

.business-hours {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hours-summary {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none; /* Hides default triangle in most browsers */
    background: var(--light-grey);
    color: #444;
    font-weight: 600;
}

    /* Hide default summary marker for Safari */
    .hours-summary::-webkit-details-marker {
        display: none;
    }

.status-badge {
    flex: 1;
    display: block;
    font-size: 0.8rem;
    text-align: center;
    padding: 2px 8px;
    background: transparent;
    border-radius: 0;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

details[open] .arrow-icon {
    transform: rotate(180deg);
}

.hours-content {
    padding: 10px 0;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .hours-list li {
        display: flex;
        justify-content: space-between;
        padding: 10px 20px;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.95rem;
        color: #444;
    }

        .hours-list li:last-child {
            border-bottom: none;
        }

        /* Style for the current day */
        .hours-list li.is-today {
            background: var(--light-grey);
            color: var(--kiner-blue);
            font-weight: bold;
            border-left: 4px solid var(--kiner-blue);
        }


/* Insurance + Rates Section */
.insurance-section {
    padding: 72px 20px 96px;
    background: #fff;
}

.insurance-section .container {
    margin-left: 0;
}

.insurance-shell {
    max-width: 920px;
    margin: 0 auto;
}

.rates-section {
    padding: 72px 20px 96px;
    margin-bottom: 110px;
    background: var(--bg-light);
    text-align: center;
}

    .rates-section h2 {
        margin: 0 0 28px;
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        font-weight: 400;
        line-height: 1.1;
        color: #1f1f1f;
    }

.rates-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 520px;
    margin: 0 auto;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    font-size: 1.1rem;
    color: #1f1f1f;
}

    .rate-item span:first-child,
    .price {
        font-size: 1.05em;
    }

.price {
    font-weight: 400;
    white-space: nowrap;
}

.insurance-accept h2 {
    margin: 0 0 28px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9a8a7c;
}

.insurance-list {
    margin: 0;
    padding-left: 24px;
    columns: 1;
    color: #5c5c5c;
}

    .insurance-list li {
        margin-bottom: 8px;
        font-size: 1.05rem;
    }

@media (max-width: 768px) {
    .insurance-section {
        padding: 56px 20px 72px;
    }

    .rates-section {
        margin-bottom: 72px;
    }

        .rates-section h2 {
            font-size: 2.3rem;
        }

    .rate-item {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .rate-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}







.nav-link-plain {
    color: black;
    text-decoration: none;
}

    .nav-link-plain:hover,
    .nav-link-plain:focus {
        color: black;
        text-decoration: none;
    }
