/* Clinic Client Portal – front-end. Uses theme tokens when present. */
.cp-form { --cp-accent: var(--hc-accent, #2f5d50); --cp-line: var(--hc-line, #dcd6c8); --cp-bg: var(--hc-surface, #fff); }
.cp-form p { margin: 0 0 1rem; }
.cp-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.cp-form input[type=text], .cp-form input[type=email], .cp-form input[type=tel], .cp-form input[type=date],
.cp-form select, .cp-form textarea {
	width: 100%; box-sizing: border-box; padding: .7rem .85rem; border: 1px solid var(--cp-line); border-radius: 10px;
	background: var(--cp-bg); color: inherit; font: inherit; font-size: 1rem;
}
.cp-form input:focus, .cp-form select:focus, .cp-form textarea:focus { outline: 2px solid var(--cp-accent); outline-offset: 1px; border-color: var(--cp-accent); }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.25rem; }
.cp-check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; font-size: .92rem; margin: 0 0 1rem; }
.cp-check input { margin-top: .25rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--cp-accent); }
.cp-small { font-size: .85rem; opacity: .8; }
.cp-btn, a.cp-btn {
	display: inline-block; background: var(--hc-accent, #2f5d50); color: #fff !important; border: 0; border-radius: 999px;
	padding: .75rem 1.5rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: filter .15s, transform .15s;
}
.cp-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cp-link { background: none; border: 0; padding: 0; color: #a23b2c; text-decoration: underline; cursor: pointer; font: inherit; }
.cp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cp-notice { padding: .9rem 1.1rem; border-radius: 10px; margin: 0 0 1.25rem; border-left: 4px solid; }
.cp-notice--success { background: #eaf3ee; border-color: #3f7d62; color: #1e4535; }
.cp-notice--error { background: #fbecea; border-color: #b4483a; color: #6b2018; }

.cp-inline { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.cp-inline input { flex: 1 1 180px; width: auto !important; }
.cp-newsletter .cp-check { margin: 0; }

/* Portal */
.cp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.cp-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem; border: 1px solid var(--hc-line, #dcd6c8); border-radius: 14px; background: var(--hc-surface, #fff); text-decoration: none !important; color: inherit !important; transition: border-color .15s, transform .15s; }
.cp-card:hover { border-color: var(--hc-accent, #2f5d50); transform: translateY(-2px); }
.cp-card__k { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cp-card__v { font-size: 1.1rem; font-weight: 600; }
.cp-card__a { font-size: .88rem; color: var(--hc-accent, #2f5d50); margin-top: auto; }
.cp-table { width: 100%; border-collapse: collapse; }
.cp-table th, .cp-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--hc-line, #dcd6c8); text-align: left; vertical-align: top; }
.cp-unread td:first-child a { font-weight: 700; }
.cp-badge { display: inline-block; background: var(--hc-accent-2, #c47a4a); color: #fff; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; }
.cp-status { display: inline-block; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; background: #eee; }
.cp-status--pending { background: #fff3d6; color: #7a5a00; }
.cp-status--confirmed { background: #e2f1e8; color: #1f5a3d; }
.cp-status--completed { background: #e7ecf4; color: #2f4566; }
.cp-status--cancelled { background: #f6e3e0; color: #8a2e22; }
.cp-thread { display: flex; flex-direction: column; gap: .8rem; margin: 1rem 0 1.5rem; }
.cp-thread-title { margin: .5rem 0 0; }
.cp-msg { max-width: 85%; padding: .85rem 1.1rem; border-radius: 16px; }
.cp-msg p:last-child { margin-bottom: 0; }
.cp-msg--me { align-self: flex-end; background: var(--hc-accent-soft, #e3ece7); border-bottom-right-radius: 4px; }
.cp-msg--clinic { align-self: flex-start; background: var(--hc-surface-2, #f6f2e9); border: 1px solid var(--hc-line, #dcd6c8); border-bottom-left-radius: 4px; }
.cp-msg__meta { font-size: .78rem; opacity: .7; margin-bottom: .3rem; }
@media (max-width: 600px) { .cp-msg { max-width: 100%; } .cp-table th:nth-child(2), .cp-table td:nth-child(2) { white-space: nowrap; } }

/* Clinic details + therapy cards */
.cp-details { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.cp-details li { display: flex; gap: .75rem; align-items: flex-start; }
.cp-details .cp-icon { flex: none; color: var(--hc-accent, #2f5d50); margin-top: .1rem; }
.cp-therapies { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 1.5rem 0 2.5rem; }
.cp-therapy { display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem; border-radius: 20px; background: var(--hc-surface, #fff); border: 1px solid var(--hc-line, #dcd6c8); color: inherit !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cp-therapy:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(31, 58, 51, .45); border-color: var(--hc-accent, #2f5d50); }
.cp-therapy__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--hc-accent-soft, #e3ece7); color: var(--hc-accent, #2f5d50); }
.cp-therapy--herbal .cp-therapy__icon { background: #ecefdc; color: #5b6b2a; }
.cp-therapy--bioresonance .cp-therapy__icon { background: #f3e6dc; color: #9a5a33; }
.cp-therapy__title { font-family: var(--hc-font-display, Georgia, serif); font-size: 1.45rem; line-height: 1.2; }
.cp-therapy__text { font-size: .97rem; opacity: .85; }
.cp-therapy__more { margin-top: auto; padding-top: .4rem; font-weight: 600; color: var(--hc-accent, #2f5d50); font-size: .92rem; }
