:root {
    --cabinet-bg: linear-gradient(145deg, #f5f7fa 0%, #eceff4 100%);
    --cabinet-card-bg: #ffffff;
    --cabinet-text: #1f2d3d;
    --cabinet-muted: #5d6b79;
    --cabinet-border: #d6dee8;
    --cabinet-primary: #476D8B;
    --cabinet-primary-hover: #3b5c77;
    --cabinet-shadow: 0 18px 45px rgba(27, 46, 64, 0.12);
    --cabinet-radius-lg: 22px;
    --cabinet-radius-md: 14px;
}

.psychologist-cabinet,
.psychologist-profile-editor {
    color: var(--cabinet-text);
    max-width: 1120px;
    margin: 22px auto 48px;
    padding: 26px;
    border-radius: var(--cabinet-radius-lg);
    background: var(--cabinet-bg);
    box-shadow: var(--cabinet-shadow);
}

.psychologist-breadcrumbs {
    margin-top: 10px;
}

.psychologist-cabinet h2,
.psychologist-cabinet h3,
.psychologist-profile-editor h2,
.psychologist-profile-editor h3 {
    margin: 0 0 14px;
    color: #1c3044;
    font-weight: 700;
    line-height: 1.2;
}

.psychologist-cabinet h3,
.psychologist-profile-editor h2 {
    font-size: 32px;
}

.psychologist-cabinet p,
.psychologist-profile-editor p {
    margin: 0 0 14px;
    line-height: 1.5;
}

.psychologist-cabinet-entry {
    padding: 8px 0;
}

.specialist-card--cabinet-entry {
    display: block;
}

.specialist-card--cabinet-entry #info-section-profile {
    width: 100% !important;
}

.specialist-card--cabinet-entry .specialist-card__content {
    width: 100%;
}

.psychologist-cabinet-entry p {
    margin: 0 0 10px;
}

.psychologist-muted {
    color: var(--cabinet-muted);
}

.psychologist-cabinet__notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f2d793;
    background: #fff8e6;
    color: #5a4720;
    font-weight: 500;
}

.psychologist-cabinet__forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.psychologist-cabinet__register,
.psychologist-cabinet__login,
.psychologist-profile-editor {
    background: var(--cabinet-card-bg);
    border: 1px solid var(--cabinet-border);
    border-radius: var(--cabinet-radius-md);
    padding: 24px;
}

.psychologist-cabinet > form {
    margin-top: 18px;
}

.psychologist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 4px 0 14px;
    align-items: center;
}

.psychologist-cabinet label,
.psychologist-profile-editor label,
.psychologist-profile-editor .acf-label label {
    display: inline-block;
    margin-bottom: 6px;
    color: #2f4459;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.psychologist-cabinet input[type="text"],
.psychologist-cabinet input[type="email"],
.psychologist-cabinet input[type="password"],
.psychologist-profile-editor input[type="text"],
.psychologist-profile-editor input[type="email"],
.psychologist-profile-editor input[type="password"],
.psychologist-profile-editor input[type="number"],
.psychologist-profile-editor input[type="url"],
.psychologist-profile-editor input[type="file"],
.psychologist-profile-editor textarea,
.psychologist-profile-editor select,
.psychologist-profile-editor .acf-field input[type="text"],
.psychologist-profile-editor .acf-field input[type="email"],
.psychologist-profile-editor .acf-field input[type="password"],
.psychologist-profile-editor .acf-field input[type="number"],
.psychologist-profile-editor .acf-field input[type="url"],
.psychologist-profile-editor .acf-field input[type="file"],
.psychologist-profile-editor .acf-field textarea,
.psychologist-profile-editor .acf-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--cabinet-border);
    background: #fff;
    color: #173046;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.psychologist-cabinet input:focus,
.psychologist-profile-editor input:focus,
.psychologist-profile-editor textarea:focus,
.psychologist-profile-editor select:focus {
    border-color: #7da3c0;
    box-shadow: 0 0 0 4px rgba(71, 109, 139, 0.14);
}

.psychologist-cabinet textarea,
.psychologist-profile-editor textarea,
.psychologist-profile-editor .acf-field textarea {
    min-height: 130px;
    resize: vertical;
}

.psychologist-cabinet button,
.psychologist-cabinet .suit__card-btn,
.psychologist-cabinet .suit__card-btn-2,
.psychologist-profile-editor .suit__card-btn,
.psychologist-profile-editor .suit__card-btn-2,
.psychologist-cabinet-entry .suit__card-btn,
.psychologist-cabinet-entry .suit__card-btn-2,
.psychologist-profile-editor .acf-form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--cabinet-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    width: auto !important;
    min-width: 0;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 20px rgba(71, 109, 139, 0.28);
}

.psychologist-cabinet button:hover,
.psychologist-cabinet .suit__card-btn:hover,
.psychologist-cabinet .suit__card-btn-2:hover,
.psychologist-profile-editor .suit__card-btn:hover,
.psychologist-profile-editor .suit__card-btn-2:hover,
.psychologist-cabinet-entry .suit__card-btn:hover,
.psychologist-cabinet-entry .suit__card-btn-2:hover,
.psychologist-profile-editor .acf-form-submit input[type="submit"]:hover {
    background: var(--cabinet-primary-hover);
    transform: translateY(-1px);
}

.psychologist-cabinet .suit__card-btn-2,
.psychologist-profile-editor .suit__card-btn-2,
.psychologist-cabinet-entry .suit__card-btn-2 {
    margin: 0;
}

.psychologist-profile-editor .acf-fields,
.psychologist-profile-editor .acf-field {
    border: 0;
}

.psychologist-profile-editor .acf-field {
    margin-bottom: 16px;
    padding: 0;
}

.psychologist-profile-editor .acf-form-submit {
    margin-top: 22px;
    padding: 0;
}

.psychologist-profile-editor .acf-field input[type="file"],
.psychologist-profile-editor .acf-field input[type="file"]::file-selector-button {
    cursor: pointer;
}

.psychologist-profile-editor .acf-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--cabinet-primary);
    color: #fff;
    padding: 9px 14px;
    font-weight: 600;
}

.psychologist-cabinet-entry .small-title__card {
    margin-bottom: 10px;
}

.psychologist-profile-editor .wp-editor-wrap .mce-toolbar button,
.psychologist-profile-editor .wp-editor-wrap .mce-toolbar button:hover,
.psychologist-profile-editor .wp-editor-wrap .mce-toolbar button:focus,
.psychologist-profile-editor .wp-editor-wrap .mce-toolbar .mce-active,
.psychologist-profile-editor .quicktags-toolbar input.button {
    background: #fff !important;
    color: #2f4459 !important;
    border: 1px solid var(--cabinet-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    min-height: 34px !important;
    min-width: 34px !important;
    width: auto !important;
    padding: 4px 10px !important;
}

.psychologist-profile-editor .wp-editor-wrap .mce-toolbar button .mce-ico {
    color: #2f4459 !important;
}

.psychologist-profile-editor .acf-field .acf-notice,
.psychologist-profile-editor .acf-error-message {
    border-radius: 8px;
}

.psychologist-profiles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.psychologist-profiles__card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--cabinet-border);
    background: #fff;
}

.psychologist-profiles__card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.review__form-block {
    margin: 26px 0 10px;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--cabinet-border);
    background: #fff;
}

.review__form-block .small-title__card {
    margin: 0 0 10px;
}

.review__form-note {
    margin-bottom: 14px !important;
    color: var(--cabinet-muted);
}

.review__form-block .comment-form-author,
.review__form-block .comment-form-email,
.review__form-block .comment-form-rating,
.review__form-block .comment-form-comment {
    margin-bottom: 12px;
}

.review__form-block label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2f4459;
}

.review__form-block input[type="text"],
.review__form-block input[type="email"],
.review__form-block select,
.review__form-block textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--cabinet-border);
    background: #fff;
    color: #173046;
}

.review__form-block textarea {
    min-height: 130px;
    resize: vertical;
}

.review__form-block .comment-form-cookies-consent {
    display: none;
}

@media (max-width: 940px) {
    .psychologist-cabinet,
    .psychologist-profile-editor {
        padding: 18px;
        margin: 14px auto 34px;
    }

    .psychologist-cabinet__forms {
        grid-template-columns: 1fr;
    }

    .psychologist-cabinet__register,
    .psychologist-cabinet__login,
    .psychologist-profile-editor {
        padding: 18px;
    }

    .psychologist-cabinet h3,
    .psychologist-profile-editor h2 {
        font-size: 26px;
    }

    .review__form-block {
        padding: 18px;
    }

    .psychologist-profiles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .psychologist-cabinet,
    .psychologist-profile-editor {
        padding: 14px;
        border-radius: 16px;
    }

    .psychologist-cabinet button,
    .psychologist-cabinet .suit__card-btn,
    .psychologist-cabinet .suit__card-btn-2,
    .psychologist-profile-editor .suit__card-btn,
    .psychologist-profile-editor .suit__card-btn-2,
    .psychologist-cabinet-entry .suit__card-btn,
    .psychologist-cabinet-entry .suit__card-btn-2,
    .psychologist-profile-editor .acf-form-submit input[type="submit"] {
        width: 100%;
        min-width: 0;
    }

    .psychologist-profiles__grid {
        grid-template-columns: 1fr;
    }
}
