/**
 * Ashray Ayurveda Care Roadmap - Frontend Intake & Portal Styles
 * Compliant with Ashray Ayurveda CSS Architecture
 */

:root {
	--ashray-deep-green: #1F4210;
	--ashray-leaf-green: #2F521E;
	--ashray-gold: #D7AE5D;
	--ashray-warm-ivory: #FEF7ED;
	--ashray-white: #FFFFFF;
	--ashray-charcoal: #263126;
	--ashray-sage: #667064;
	--ashray-sand-gold: #E8CF96;
	--ashray-radius: 12px;
	--ashray-shadow: 0 4px 20px rgba(31, 66, 16, 0.08);
}

.ashray-intake-wrapper {
	max-width: 820px;
	margin: 30px auto;
	background: var(--ashray-white);
	border: 1px solid var(--ashray-sand-gold);
	border-radius: var(--ashray-radius);
	box-shadow: var(--ashray-shadow);
	padding: 36px 40px;
	color: var(--ashray-charcoal);
	font-family: inherit;
}

@media (max-width: 640px) {
	.ashray-intake-wrapper {
		padding: 24px 18px;
		margin: 15px auto;
	}
}

/* Header */
.ashray-intake-header {
	text-align: center;
	margin-bottom: 24px;
}

.ashray-intake-brand-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	font-weight: 700;
	color: var(--ashray-gold);
	margin-bottom: 8px;
}

.ashray-intake-brand-pill .gold-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--ashray-gold);
}

.ashray-intake-heading {
	color: var(--ashray-deep-green);
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px 0;
	line-height: 1.25;
}

.ashray-intake-subheading {
	color: var(--ashray-sage);
	font-size: 14px;
	line-height: 1.5;
	max-width: 650px;
	margin: 0 auto;
}

/* Safety Alert */
.ashray-clinical-safety-alert {
	background: var(--ashray-warm-ivory);
	border-left: 4px solid var(--ashray-gold);
	border-radius: 6px;
	padding: 12px 16px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 28px;
	font-size: 12px;
	color: var(--ashray-charcoal);
	line-height: 1.5;
}

.ashray-clinical-safety-alert strong {
	color: var(--ashray-deep-green);
}

/* Step Tracker */
.ashray-step-tracker {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
	position: relative;
}

.step-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	z-index: 2;
}

.step-number {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ashray-warm-ivory);
	border: 2px solid var(--ashray-sand-gold);
	color: var(--ashray-sage);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.step-label {
	font-size: 11px;
	color: var(--ashray-sage);
	font-weight: 600;
	text-align: center;
}

.step-item.active .step-number {
	background: var(--ashray-deep-green);
	border-color: var(--ashray-deep-green);
	color: var(--ashray-white);
}

.step-item.active .step-label {
	color: var(--ashray-deep-green);
	font-weight: 700;
}

.step-item.completed .step-number {
	background: var(--ashray-leaf-green);
	border-color: var(--ashray-leaf-green);
	color: var(--ashray-white);
}

.step-line {
	flex: 1;
	height: 2px;
	background: var(--ashray-sand-gold);
	margin: -16px 8px 0 8px;
	z-index: 1;
}

/* Form Steps */
.ashray-form-step {
	display: none;
}

.ashray-form-step.active {
	display: block;
	animation: ashrayFadeIn 0.3s ease;
}

@keyframes ashrayFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.step-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--ashray-deep-green);
	margin: 0 0 4px 0;
}

.step-desc {
	font-size: 13px;
	color: var(--ashray-sage);
	margin-bottom: 22px;
}

/* Form Inputs */
.ashray-form-group {
	margin-bottom: 20px;
}

.ashray-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ashray-deep-green);
	margin-bottom: 6px;
}

.ashray-label.required::after {
	content: " *";
	color: #c94a29;
}

.ashray-input,
.ashray-select,
.ashray-textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d5dbd3;
	border-radius: 8px;
	font-size: 14px;
	color: var(--ashray-charcoal);
	background: var(--ashray-white);
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.ashray-input:focus,
.ashray-select:focus,
.ashray-textarea:focus {
	outline: none;
	border-color: var(--ashray-leaf-green);
	box-shadow: 0 0 0 3px rgba(47, 82, 30, 0.12);
}

.field-hint {
	display: block;
	font-size: 11px;
	color: var(--ashray-sage);
	margin-top: 4px;
}

/* Symptom Chips */
.ashray-symptom-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.symptom-chip-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ashray-warm-ivory);
	border: 1px solid var(--ashray-sand-gold);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 12px;
	color: var(--ashray-charcoal);
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
}

.symptom-chip-label input[type="checkbox"] {
	margin: 0;
	accent-color: var(--ashray-deep-green);
}

.symptom-chip-label:hover {
	border-color: var(--ashray-gold);
	background: #fbf0dc;
}

.symptom-chip-label.selected {
	background: #eef3ec;
	border-color: var(--ashray-deep-green);
	color: var(--ashray-deep-green);
	font-weight: 600;
}

/* Row Grids */
.ashray-form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}

.col-half {
	flex: 1;
	margin-bottom: 0;
}

.col-third {
	flex: 1;
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.ashray-form-row {
		flex-direction: column;
		gap: 16px;
	}
}

/* Checkboxes */
.checkbox-group {
	margin-bottom: 16px;
}

.ashray-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: var(--ashray-charcoal);
	cursor: pointer;
	line-height: 1.4;
}

.ashray-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	accent-color: var(--ashray-deep-green);
}

/* Buttons */
.ashray-form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #edf0ec;
}

.ashray-btn-primary {
	background: var(--ashray-deep-green);
	color: var(--ashray-white);
	border: none;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.2s ease, transform 0.1s ease;
}

.ashray-btn-primary:hover {
	background: var(--ashray-leaf-green);
	color: var(--ashray-white);
}

.ashray-btn-secondary {
	background: transparent;
	border: 1px solid var(--ashray-gold);
	color: var(--ashray-deep-green);
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: all 0.2s ease;
}

.ashray-btn-secondary:hover {
	background: var(--ashray-gold);
	color: var(--ashray-white);
}

.ashray-form-messages {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 13px;
}

.ashray-form-messages.error {
	background: #fdf2f2;
	border: 1px solid #f8b4b4;
	color: #9b1c1c;
}

/* Success Screen */
.ashray-success-screen {
	text-align: center;
	padding: 20px 0;
}

.success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ashray-leaf-green);
	color: var(--ashray-white);
	font-size: 28px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px auto;
}

.success-title {
	font-size: 22px;
	color: var(--ashray-deep-green);
	margin-bottom: 6px;
}

.success-sub {
	color: var(--ashray-sage);
	font-size: 14px;
	margin-bottom: 24px;
}

.success-details-card {
	background: var(--ashray-warm-ivory);
	border: 1px solid var(--ashray-sand-gold);
	border-radius: 8px;
	padding: 16px 20px;
	max-width: 480px;
	margin: 0 auto 24px auto;
	text-align: left;
}

.success-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 13px;
	border-bottom: 1px dashed var(--ashray-sand-gold);
}

.success-row:last-child {
	border-bottom: none;
}

.success-row span {
	color: var(--ashray-sage);
}

.triage-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	text-transform: uppercase;
}

.triage-badge.standard { background: #e3f2fd; color: #1565c0; }
.triage-badge.moderate { background: #fff3e0; color: #e65100; }
.triage-badge.urgent { background: #ffebee; color: #c62828; }

.success-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 16px;
}

.success-email-notice {
	font-size: 12px;
	color: var(--ashray-sage);
}

/* =========================================================
   PORTAL VIEW STYLES
   ========================================================= */
.ashray-patient-portal-wrap {
	max-width: 900px;
	margin: 0 auto;
}

.portal-card {
	background: var(--ashray-white);
	border: 1px solid var(--ashray-sand-gold);
	border-radius: var(--ashray-radius);
	box-shadow: var(--ashray-shadow);
	overflow: hidden;
}

.portal-header {
	background: var(--ashray-deep-green);
	color: var(--ashray-white);
	padding: 30px 36px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	border-bottom: 3px solid var(--ashray-gold);
}

.gold-eyebrow {
	color: var(--ashray-gold);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	font-weight: 700;
	display: block;
	margin-bottom: 4px;
}

.portal-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--ashray-white);
	margin: 0 0 10px 0;
}

.portal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 12px;
	color: #dce5d7;
}

.ashray-btn-gold {
	background: var(--ashray-gold);
	color: var(--ashray-deep-green);
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	display: inline-block;
	white-space: nowrap;
	transition: background 0.2s;
}

.ashray-btn-gold:hover {
	background: #cba04f;
	color: var(--ashray-deep-green);
}

.portal-status-bar {
	padding: 12px 36px;
	font-size: 13px;
	border-bottom: 1px solid #e2ebd8;
}

.portal-status-bar.approved {
	background: #edf7e8;
	color: #1b5e20;
}

.portal-status-bar.pending {
	background: var(--ashray-warm-ivory);
	color: #8c5714;
}

.portal-content {
	padding: 32px 36px;
}

.portal-section-box {
	background: var(--ashray-white);
	border: 1px solid #e6ece4;
	border-radius: 8px;
	padding: 22px;
	margin-bottom: 24px;
}

.portal-section-box.highlight-box {
	background: var(--ashray-warm-ivory);
	border-color: var(--ashray-sand-gold);
}

.section-badge {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	color: var(--ashray-gold);
	margin-bottom: 4px;
}

.section-inner-title {
	font-size: 20px;
	color: var(--ashray-deep-green);
	margin: 0 0 4px 0;
}

.classical-ref {
	font-size: 12px;
	color: var(--ashray-sage);
	margin-bottom: 8px;
}

.section-desc {
	font-size: 13px;
	color: var(--ashray-charcoal);
	line-height: 1.5;
	margin: 0;
}

.box-heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--ashray-deep-green);
	margin: 0 0 14px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.doctor-notes-content {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ashray-charcoal);
}

.portal-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.portal-grid-2 {
		grid-template-columns: 1fr;
	}
}

.pathya-box {
	border-radius: 8px;
	padding: 16px;
	border: 1px solid #d5e4cf;
	background: #fafdf9;
}

.pathya-box.avoid {
	border-color: #f2e2d0;
	background: #fdfaf7;
}

.pathya-col-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--ashray-leaf-green);
	margin: 0 0 10px 0;
}

.pathya-box.avoid .pathya-col-title {
	color: #9c4b1a;
}

.portal-bullet-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.portal-bullet-list li {
	font-size: 13px;
	color: var(--ashray-charcoal);
	margin-bottom: 6px;
	padding-left: 16px;
	position: relative;
	line-height: 1.45;
}

.portal-bullet-list li::before {
	content: "•";
	position: absolute;
	left: 4px;
	color: var(--ashray-leaf-green);
	font-weight: bold;
}

.portal-herbs-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.portal-herb-pill {
	background: var(--ashray-warm-ivory);
	border: 1px solid var(--ashray-gold);
	color: var(--ashray-deep-green);
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}

/* Products Grid */
.portal-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.portal-product-card {
	border: 1px solid var(--ashray-sand-gold);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: var(--ashray-white);
}

.product-thumb {
	width: 100%;
	height: 140px;
	object-fit: cover;
	background: #f7f9f6;
}

.product-info {
	padding: 14px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.product-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--ashray-deep-green);
	margin: 0 0 4px 0;
}

.product-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--ashray-leaf-green);
	margin-bottom: 6px;
}

.product-desc {
	font-size: 12px;
	color: var(--ashray-sage);
	margin-bottom: 12px;
	flex: 1;
}

.ashray-btn-cart {
	background: var(--ashray-deep-green);
	color: var(--ashray-white);
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	text-align: center;
	transition: background 0.2s;
}

.ashray-btn-cart:hover {
	background: var(--ashray-leaf-green);
	color: var(--ashray-white);
}

/* Consultation Callout */
.portal-consultation-callout {
	background: var(--ashray-deep-green);
	color: var(--ashray-white);
	border-radius: 8px;
	padding: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
}

@media (max-width: 640px) {
	.portal-consultation-callout {
		flex-direction: column;
		align-items: flex-start;
	}
}

.callout-content h4 {
	font-size: 16px;
	color: var(--ashray-white);
	margin: 0 0 6px 0;
}

.callout-content p {
	font-size: 13px;
	color: #dce5d7;
	margin: 0 0 4px 0;
}

.callout-content strong {
	color: var(--ashray-gold);
}

.callout-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ashray-btn-whatsapp {
	background: #25d366;
	color: #FFFFFF;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
}

.ashray-btn-phone {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--ashray-gold);
	color: var(--ashray-white);
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
}

.portal-disclaimer {
	font-size: 11px;
	color: var(--ashray-sage);
	background: var(--ashray-warm-ivory);
	border: 1px solid var(--ashray-sand-gold);
	border-radius: 6px;
	padding: 12px 16px;
	line-height: 1.5;
}

.portal-disclaimer strong {
	color: var(--ashray-deep-green);
}
