.patients-page {
    padding-bottom: 150px;
    margin-bottom: 64px;
}

.patients-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin: 20px auto 110px;
    align-items: start;
    max-width: 1440px;
    padding: 0 40px;
}

.patients-nav {
    background: #f3ede0;
    border-radius: 24px;
    padding: 16px 0;
    position: sticky;
    top: 130px;
    z-index: 90;
    box-shadow: 0 10px 30px rgba(67, 75, 68, 0.04);
    border: 1px solid rgba(67, 75, 68, 0.05);
}

.patients-nav__item {
    display: block;
    padding: 12px 32px;
    font-size: 15px;
    color: #434b44;
    text-decoration: none;
    transition: all 0.28s ease;
    border-left: 4px solid transparent;
}

.patients-nav__item:hover {
    background: rgba(67, 75, 68, 0.06);
    padding-left: 36px;
    color: #5a635b;
}

.patients-nav__item--active {
    background: #434b44;
    color: #ece3ca;
    font-weight: 600;
    border-left: 4px solid #5a635b;
}

.patients-content {
    background: transparent;
    padding: 0;
}

.patients-section {
    display: none;
    opacity: 0;
    transform: translateY(6px);
}

.patients-section--active {
    display: block;
}

.patients-section--enter {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.patients-section--leave {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.patients-section h2 {
    font-size: 30px;
    color: #434b44;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.patients-section p {
    font-size: 16px;
    color: #5a5548;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 900px;
}

.patients-section h3 {
    font-size: 20px;
    color: #434b44;
    margin: 20px 0 12px;
    font-weight: 600;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
}

.doc-card {
    display: flex;
    align-items: center;
    background: #ece3ca;
    padding: 18px 24px;
    border-radius: 20px;
    border: 1px solid rgba(67, 75, 68, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.doc-card:hover {
    transform: translateY(-3px);
    border-color: rgba(67, 75, 68, 0.3);
    box-shadow: 0 10px 25px rgba(67, 75, 68, 0.06);
    background: #f3ede0;
}

.doc-icon {
    flex-shrink: 0;
    width: 38px;
    height: 48px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon svg, .doc-icon i {
    width: 100% !important;
    height: 100% !important;
    color: #434b44 !important;
    fill: #434b44 !important;
    opacity: 0.8;
}

.doc-card:hover .doc-icon svg,
.doc-card:hover .doc-icon i {
    opacity: 1;
}

.doc-content {
    flex: 1;
    min-width: 0;
}

.doc-title {
    font-size: 15px;
    font-weight: 600;
    color: #434b44;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.doc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-type {
    font-size: 9px;
    font-weight: 800;
    background: rgba(67, 75, 68, 0.1);
    color: #434b44;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.doc-size {
    font-size: 12px;
    color: #5a5548;
}

.doc-download {
    width: 40px;
    height: 40px;
    background: #434b44;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.doc-download svg, .doc-download i {
    width: 18px;
    height: 18px;
    color: #ece3ca !important;
    fill: #ece3ca !important;
}

.doc-download:hover {
    background: #5a635b;
    transform: scale(1.05);
}

.kontrol-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kontrol-card {
    background: #ece3ca;
    border-radius: 18px;
    border: 1px solid rgba(67, 75, 68, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.kontrol-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.kontrol-header h3 {
    margin: 0;
    font-size: 17px;
    color: #434b44;
}

.kontrol-toggle {
    width: 32px;
    height: 32px;
    background: rgba(67, 75, 68, 0.08);
    border: 1px solid rgba(67, 75, 68, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.28s ease;
}

.kontrol-toggle i, .kontrol-toggle svg {
    color: #434b44 !important;
    fill: #434b44 !important;
    transition: transform 0.28s ease, color 0.28s ease, fill 0.28s ease;
}

.kontrol-card.active {
    border-color: #434b44;
    background: #f3ede0;
}

.kontrol-card.active .kontrol-toggle {
    background: #434b44;
    border-color: #434b44;
}

.kontrol-card.active .kontrol-toggle i,
.kontrol-card.active .kontrol-toggle svg {
    color: #ece3ca !important;
    fill: #ece3ca !important;
    transform: rotate(180deg);
}

.kontrol-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.28s ease;
    padding: 0 24px;
    opacity: 0;
}

.kontrol-card.active .kontrol-content {
    max-height: 1000px;
    padding: 5px 24px 20px;
    opacity: 1;
}

.kontrol-content a,
.kontrol-content a:visited,
.section-note a,
.section-note a:visited {
    color: #434b44;
}

.kontrol-content a:hover,
.section-note a:hover {
    color: #5a635b;
}

.section-note {
    margin-top: 28px;
    padding: 18px 28px 18px 48px;
    background: #f2f0e8;
    border-radius: 24px;
    color: #3f4a45;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    border: 1px solid rgba(67, 75, 68, 0.10);
    position: relative;
}

.section-note::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 13px;
    height: calc(100% - 22px);
    transform: translateY(-50%);
    border-left: 4px solid #616a63;
    border-top: 4px solid #616a63;
    border-bottom: 4px solid #616a63;
    border-right: none;
    border-radius: 16px 0 0 16px;
    pointer-events: none;
}

.section-note::after {
    content: none;
}

.docs-note {
    margin-top: 40px;
}

.kontrol-note {
    margin-top: 22px;
}

@media (max-width: 1200px) {
    .patients-layout { gap: 30px; padding: 0 20px; }
    .docs-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    .patients-layout { 
        grid-template-columns: 1fr;
        margin-top: 10px;
    }
    .patients-nav {
        position: relative;
        top: 0;
        display: flex;
        overflow-x: auto;
        border-radius: 16px;
        padding: 8px;
        margin-bottom: 20px;
    }
    .patients-nav__item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 10px 20px;
    }
    .patients-nav__item--active { 
        border-bottom-color: #434b44;
        background: transparent;
        color: #434b44;
    }
}

@media (max-width: 768px) {
    .docs-grid { grid-template-columns: 1fr; }
    .patients-section h2 { font-size: 24px; }

    .patients-layout {
        margin: 10px auto 40px;
        padding: 0 12px;
        gap: 16px;
    }

    .patients-nav {
        border-radius: 14px;
        padding: 6px;
        margin-bottom: 8px;
    }

    .patients-nav__item {
        font-size: 13px;
        padding: 9px 12px;
    }

    .patients-section p {
        font-size: 14px;
        line-height: 1.5;
    }

    .doc-card {
        padding: 14px 14px;
        border-radius: 14px;
    }

    .doc-title {
        font-size: 14px;
    }

    .doc-download {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .kontrol-header {
        padding: 14px 14px;
    }

    .kontrol-header h3 {
        font-size: 15px;
        line-height: 1.3;
    }

    .kontrol-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .kontrol-card.active .kontrol-content {
        padding: 4px 14px 14px;
    }
}


/* PATIENT QUESTION FORM 20260516 */
.patient-question {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    max-width: 920px;
    margin-top: 24px;
    background: rgba(236, 227, 202, 0.58);
    border: 1px solid rgba(67, 75, 68, 0.1);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(67, 75, 68, 0.05);
}

.patient-question__intro {
    align-self: stretch;
    min-height: 0;
    background: #434b44;
    color: #ece3ca;
    border-radius: 16px;
    padding: 34px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.patient-question__eyebrow {
    display: block;
    margin-bottom: 14px;
    color: rgba(236, 227, 202, 0.72);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.patient-question__intro h3 {
    margin: 0 0 14px;
    color: #ece3ca;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.patient-question__intro p {
    margin: 0 0 20px;
    color: rgba(236, 227, 202, 0.86);
    font-size: 15px;
    line-height: 1.45;
}

.patient-question__phone {
    display: inline-flex;
    align-self: flex-start;
    color: #ece3ca;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.patient-question__form {
    min-width: 0;
    padding: 2px 0;
}

.patient-question__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.patient-question__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.patient-question__field--wide {
    grid-column: 1 / -1;
}

.patient-question__field span {
    color: #434b44;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
}

.patient-question__field input,
.patient-question__field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(67, 75, 68, 0.14);
    border-radius: 13px;
    background: #f8f1e3;
    color: #434b44;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.3;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.patient-question__field input {
    height: 46px;
}

.patient-question__field textarea {
    min-height: 128px;
    resize: vertical;
}

.patient-question__field input:focus,
.patient-question__field textarea:focus {
    background: #fff8ea;
    border-color: rgba(67, 75, 68, 0.42);
    box-shadow: 0 0 0 4px rgba(67, 75, 68, 0.07);
}

.patient-question__field small,
.patient-question__agree-error {
    color: #9b3b2f;
    font-size: 12px;
}

.patient-question__agree {
    margin-top: 14px;
}

.patient-question__agree.booking-consent {
    align-items: center;
}

.patient-question__agree.booking-consent input {
    margin: 0;
    flex: 0 0 auto;
}

.patient-question__agree-error {
    display: block;
    margin-top: 7px;
    color: #9b3b2f;
    font-size: 12px;
}

.patient-question__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.patient-question__actions button {
    border: 0;
    border-radius: 999px;
    background: #434b44;
    color: #ece3ca;
    min-height: 44px;
    padding: 0 24px;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease;
}

.patient-question__actions button:hover {
    background: #5a635b;
    transform: translateY(-2px);
}

.patient-question__actions span {
    color: #6a6455;
    font-size: 14px;
}

.patient-question-success,
.patient-question-error {
    max-width: 920px;
    margin: 0 0 18px;
    border-radius: 16px;
    padding: 16px 20px;
}

.patient-question-success {
    background: rgba(67, 75, 68, 0.1);
    border: 1px solid rgba(67, 75, 68, 0.18);
}

.patient-question-error {
    color: #7d2f27;
    background: rgba(155, 59, 47, 0.1);
    border: 1px solid rgba(155, 59, 47, 0.18);
}

.patient-question-success h3 {
    margin: 0 0 6px;
}

.patient-question-success p {
    margin: 0;
}

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

@media (max-width: 620px) {
    .patient-question {
        padding: 18px;
        border-radius: 18px;
    }

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

    .patient-question__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .patient-question__actions button {
        width: 100%;
    }
}

/* PATIENT QUESTION CONSENT FIX 20260516 */
.patient-question__agree {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

.patient-question__agree input {
    width: 18px !important;
    height: 18px !important;
    margin: 1px 0 0 !important;
    flex: 0 0 auto !important;
    accent-color: #434b44 !important;
}

.patient-question__agree a,
.patient-question__agree a:visited {
    color: #434B44 !important;
    font-weight: 700 !important;
    text-decoration-line: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
}
