.sc-cs--studies {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Allow plugin sections to span the full viewport inside constrained WP themes. */
.wp-block-post-content .sc-cs--studies {
    width: 100vw;
    max-width: 1600px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 20px;
    padding-right: 20px;
}

/* Force correct layout in WordPress post content */
.wp-block-post-content .sc-cs__study-detail-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

.wp-block-post-content .sc-cs__study-hero-media {
    width: 100% !important;
    max-width: 100% !important;
}

.wp-block-post-content .sc-cs__study-hero-media img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Force correct layout for study cards in WordPress post content */
.wp-block-post-content .sc-cs__study-card {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

.wp-block-post-content .sc-cs__study-card-left {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
}

.wp-block-post-content .sc-cs__study-card-left img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.wp-block-post-content .sc-cs__appointment {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 1.5rem;
    box-sizing: border-box;
}

.sc-cs__breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.sc-cs__breadcrumb a {
    text-decoration: none;
    font-weight: 600;
}

.sc-cs__breadcrumb a:hover {
    text-decoration: underline;
}

.sc-cs__breadcrumb-separator {
    margin: 0 0.5rem;
}

.sc-cs__page-title {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
}

.sc-cs__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.sc-cs__lede {
    margin: 0 0 0.75rem;
}

.sc-cs__meta {
    margin: 0.15rem 0;
}

.sc-cs__notice {
    padding: 1rem 1.25rem;
    border: 1px solid #fcd34d;
    border-radius: 10px;
}

.sc-cs__directory {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.sc-cs__directory-head {
    text-align: center;
    margin-bottom: 1rem;
}

.sc-cs__directory-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
}

.sc-cs__clinic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .sc-cs__clinic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sc-cs__clinic-grid {
        grid-template-columns: 1fr;
    }
}

.sc-cs__clinic-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    padding: 1rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    text-align: center;
}

.sc-cs__clinic-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.sc-cs__clinic-media img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.sc-cs__clinic-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    align-items: center;
    text-align: center;
    flex: 1;
}

.sc-cs__clinic-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.sc-cs__clinic-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.sc-cs__clinic-sidebar .sc-cs__eyebrow {
    margin-bottom: 0.15rem;
}

.sc-cs__clinic-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sc-cs__clinic-meta a {
    text-decoration: none;
    font-weight: 700;
}

.sc-cs__clinic-meta a:hover {
    text-decoration: underline;
}

.sc-cs__clinic-map {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    line-height: 0;
}

.sc-cs__clinic-map iframe,
.sc-cs__clinic-map img {
    width: 100%;
    height: 260px;
    border: none;
    display: block;
    margin: 0;
    padding: 0;
}

.sc-cs__clinic-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 1100px) {
    .sc-cs__clinic-layout {
        grid-template-columns: 1fr;
    }
}

.sc-cs__image-fallback {
    width: 100%;
    height: 150px;
    border-radius: 12px;
}

.sc-cs__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #f5a524;
    transition: all 0.15s ease;
}

.sc-cs__button:hover {
}

.sc-cs__button--solid {
}

.sc-cs__button--solid:hover {
}

.sc-cs__button--fullwidth {
    width: 50%;
    justify-content: center;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.sc-cs__button--ghost {
    background: transparent;
}

.sc-cs__button--ghost:hover {
}

.sc-cs__link {
    font-weight: 700;
    text-decoration: none;
}

.sc-cs__link:hover {
    text-decoration: underline;
}

.sc-cs__clinic-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sc-cs__clinic-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sc-cs__clinic-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sc-cs__clinic-menu a {
    padding: 0.35rem 0.5rem;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    font-weight: 600;
}

.sc-cs__clinic-menu a.is-active {
}

.sc-cs__clinic-hero {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.sc-cs__clinic-visual iframe,
.sc-cs__clinic-visual img {
    width: 100%;
    height: 260px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.sc-cs__study-index {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.sc-cs__study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.sc-cs__study-tags a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #fde68a;
    padding-bottom: 0.1rem;
}

.sc-cs__study-tags a:hover {
}

.sc-cs__study-detail {
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
}

.sc-cs__study-detail-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.sc-cs__study-hero-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    grid-column: 1;
}

.sc-cs__study-hero-media img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: block;
}

/* Override any inline width/height attributes on images */
.sc-cs__study-hero-media img[width],
.sc-cs__study-hero-media img[height] {
    width: 100% !important;
    height: auto !important;
}

.sc-cs__study-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    grid-column: 2;
}

.sc-cs__study-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sc-cs__study-hero-text h3 {
    margin: 0;
    font-size: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sc-cs__study-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding-top: 0.5rem;
}

.sc-cs__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.sc-cs__study-groups {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 1400px;
}

.sc-cs__study-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.sc-cs__study-group h3 {
    margin: 0 0 0.5rem;
}

.sc-cs__study-card {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem;
    align-items: start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

.sc-cs__study-card:last-child {
    border-bottom: none;
}

/* Image container for study cards - CRITICAL: was missing! */
.sc-cs__study-card-left {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    grid-column: 1;
}

.sc-cs__study-card-left img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: block;
}

/* Override inline width/height on study card images */
.sc-cs__study-card-left img[width],
.sc-cs__study-card-left img[height] {
    width: 100% !important;
    height: auto !important;
}

.sc-cs__study-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.sc-cs__study-content h4 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
}

.sc-cs__study-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    grid-column: 2;
}

.sc-cs__study-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.35rem;
}

.sc-cs__appointment {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 1600px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sc-cs__appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-margin: 0 auto;
}

.sc-cs__appointment-form [hidden],
.sc-cs__indication-form [hidden] {
    display: none !important;
}

.sc-cs__form-rows {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

.sc-cs__form-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sc-cs__form-step[hidden] {
    display: none;
}

.sc-cs__questionnaire-header h3,
.sc-cs__questionnaire-header p {
    margin-top: 0;
}

.sc-cs__questionnaire-header p:last-child {
    margin-bottom: 0;
}

.sc-cs__step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.sc-cs__form-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0;
}

.sc-cs__form-instruction {
    margin: 0.5rem 0;
    font-weight: 500;
}

.sc-cs__form-row {
    display: grid;
    grid-template-columns: 32% 68%;
    column-gap: 1.25rem;
    row-gap: 0.35rem;
    align-items: start;
    width: 100%;
}

.sc-cs__form-row--full {
    grid-template-columns: 32% 68%;
}

.sc-cs__field-label {
    font-weight: 700;
}

.sc-cs__field-input input,
.sc-cs__field-input select,
.sc-cs__field-input textarea {
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    width: 100%;
}

.sc-cs__checkbox,
.sc-cs__permissions label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
    font-size: 0.95rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-cs__checkbox input[type="checkbox"],
.sc-cs__permissions input[type="checkbox"],
.sc-cs__privacy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
}

.sc-cs__privacy-row .sc-cs__privacy-copy {
    margin-top: 0.4rem;
}

.sc-cs__privacy-inline {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: flex-start;
}

.sc-cs__privacy-checkbox {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.sc-cs__privacy-text label {
    font-weight: 600;
    line-height: 1.5;
}

.sc-cs__privacy-copy a {
    font-weight: 700;
    text-decoration: none;
}

.sc-cs__privacy-copy a:hover {
    text-decoration: underline;
}

.sc-cs__radio-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.sc-cs__radio-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    margin: 0;
}

.sc-cs__radio-group input[type="radio"] {
    margin: 0;
}

.sc-cs__dob-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.sc-cs__dob-part {
    min-width: 90px;
    flex: 1 1 90px;
}

.sc-cs__dob-part option {
    text-transform: uppercase;
}


.sc-cs__appointment-form button[type="submit"],
.sc-cs__appointment-form .sc-cs__step-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    border: 2px solid #f59e0b;
    cursor: pointer;
    width: auto;
    min-width: 200px;
    max-width: 260px;
    align-self: flex-start;
    transition: all 0.15s ease;
}

.sc-cs__appointment-form .sc-cs__step-button--ghost {
    background: transparent;
    border-color: #d4d4d8;
}

.sc-cs__appointment-form button[type="submit"]:hover {
}

.sc-cs__message {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.sc-cs__message.is-success {
    border: 1px solid #22c55e;
}

.sc-cs__message.is-error {
    border: 1px solid #ef4444;
}

.sc-cs__indication-appointment {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.sc-cs__indication-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sc-cs__indication-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
}

.sc-cs__indication-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

.sc-cs__indication-field--full {
    grid-column: 1 / -1;
}

.sc-cs__indication-field input,
.sc-cs__indication-field select {
    width: 100%;
    min-height: 64px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #2d3748;
    background-color: #fff;
    box-sizing: border-box;
}

.sc-cs__indication-field input::placeholder {
    color: #8b949e;
}

.sc-cs__indication-type-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sc-cs__indication-type-list label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.35rem;
    color: #1f2937;
}

.sc-cs__indication-type-list input[type="radio"] {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    accent-color: #273142;
}

.sc-cs__indication-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    min-width: 260px;
    max-width: 540px;
    padding: 0.85rem 2rem;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: #273142;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

.sc-cs__indication-form button[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.sc-cs__indication-disclaimer {
    margin-top: 2.5rem;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.65;
}

.sc-cs__indication-disclaimer p {
    margin: 0 0 1.2rem;
}

@media (max-width: 900px) {
    .sc-cs__clinic-hero,
    .sc-cs__study-detail-body {
        grid-template-columns: 1fr;
    }

    .sc-cs__appointment-form {
        width: 100%;
        max-width: 100%;
    }

    .sc-cs__form-row,
    .sc-cs__form-row--full {
        grid-template-columns: 1fr;
    }

    .sc-cs__radio-group {
        flex-wrap: wrap;
    }

    .sc-cs__radio-group label {
        white-space: normal;
    }

    .sc-cs__study-card {
        grid-template-columns: 1fr;
    }

    .sc-cs__clinic-visual iframe,
    .sc-cs__clinic-visual img {
        height: 220px;
    }

    .sc-cs__indication-grid {
        grid-template-columns: 1fr;
    }

    .sc-cs__indication-form button[type="submit"] {
        width: 100%;
        min-width: 0;
    }
}
