/*
 * AHA Client Intake Form styles.
 * Colors below are defaults; the actual values used on the site are
 * injected inline from Settings (AHA Intake Form > Settings > Colors).
 */

.aha-intake-wrap {
	--aha-accent: #3f9c9e;
	--aha-accent-alt: #307bc4;
	--aha-text: #4d4d4d;
	--aha-dark: #274760;
	--aha-border: rgba(0, 0, 0, 0.15);
	margin: 0 auto;
	font-family: inherit;
	color: var(--aha-text);
}

/* Progress bar */
.aha-progress {
	margin-bottom: 40px;
}

.aha-progress-bar {
	width: 100%;
	height: 4px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 14px;
}

.aha-progress-fill {
	display: block;
	height: 100%;
	width: 33.33%;
	background: var(--aha-accent);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.aha-progress-labels {
	display: flex;
	justify-content: space-between;
}

.aha-progress-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.15);
	display: inline-block;
	transition: background 0.3s ease;
}

.aha-progress-dot.active {
	background: var(--aha-accent);
}

.aha-progress-dot.done {
	background: var(--aha-dark);
}

/* Honeypot: visually hidden */
.aha-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* Steps */
.aha-step {
	display: none;
	animation: aha-fade-in 0.25s ease;
}

.aha-step.active {
	display: block;
}

@keyframes aha-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.aha-step-label {
	display: block;
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 24px;
	color: var(--aha-dark);
}

/* Department picker (step 1) */
.aha-dept-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 30px;
}

@media (max-width: 560px) {
	.aha-dept-grid {
		grid-template-columns: 1fr;
	}
}

.aha-dept-option {
	position: relative;
	display: flex;
	align-items: center;
	padding: 18px 20px;
	border: 1px solid var(--aha-border);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.aha-dept-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.aha-dept-option span {
	font-size: 15px;
	font-weight: 500;
}

.aha-dept-option:hover {
	border-color: var(--aha-accent);
}

.aha-dept-option.selected {
	border-color: var(--aha-accent);
	background: rgba(63, 156, 158, 0.08);
}

/* Field rows */
.aha-field {
	margin-bottom: 26px;
}

.aha-field label {
	display: block;
	font-size: 14px;
	color: var(--aha-text);
	opacity: 0.75;
	margin-bottom: 8px;
}

.aha-field input[type="text"],
.aha-field input[type="tel"],
.aha-field input[type="email"],
.aha-field select {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--aha-border);
	background: transparent;
	font-size: 16px;
	padding: 8px 30px 8px 0;
	color: var(--aha-text);
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 0;
}

.aha-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3e%3cpath fill='%23888' d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right center;
	cursor: pointer;
}

.aha-field input:focus,
.aha-field select:focus {
	border-bottom-color: var(--aha-accent-alt);
}

.aha-field input[type="file"] {
	width: 100%;
	font-size: 14px;
	padding: 8px 0;
}

/* Buttons */
.aha-step-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
}

.aha-btn {
	border: none;
	border-radius: 30px;
	padding: 13px 34px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.aha-btn:active {
	transform: scale(0.98);
}

.aha-btn-primary {
	background: var(--aha-accent);
	color: #fff;
	margin-left: auto;
}

.aha-btn-primary:hover {
	background: var(--aha-accent-alt);
}

.aha-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.aha-btn-secondary {
	background: transparent;
	color: var(--aha-text);
	border: 1px solid var(--aha-border);
}

.aha-step[data-role="department"] .aha-step-nav {
	justify-content: flex-end;
}

/* Status message */
.aha-form-message {
	display: none;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 24px;
}

.aha-form-message.visible {
	display: block;
}

.aha-form-message.info {
	background: rgba(0, 0, 0, 0.05);
	color: var(--aha-text);
}

.aha-form-message.success {
	background: rgba(63, 156, 158, 0.12);
	color: var(--aha-dark);
}

.aha-form-message.error {
	background: rgba(220, 50, 50, 0.08);
	color: #c53030;
}

/* Field-level error highlight */
.aha-field.aha-invalid input,
.aha-field.aha-invalid select {
	border-bottom-color: #c53030;
}

.aha-dept-grid.aha-invalid .aha-dept-option {
	border-color: #c53030;
}

/* Inline field hint (e.g. phone format error) */
.aha-field-hint {
	display: block;
	font-size: 12px;
	color: #c53030;
	margin-top: 6px;
}

/* intl-tel-input: match the underline field style used everywhere else */
.aha-field .iti {
	width: 100%;
}

.aha-field .iti input {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--aha-border);
	background: transparent;
	font-size: 16px;
	padding: 8px 8px 8px 52px;
	color: var(--aha-text);
	outline: none;
	border-radius: 0;
}

.aha-field .iti input:focus {
	border-bottom-color: var(--aha-accent-alt);
}

.aha-field .iti__flag-container {
	padding-bottom: 1px;
}

/* Success panel */
.aha-success-panel {
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 20px;
}

.aha-success-text {
	font-size: 17px;
	font-weight: 500;
	color: var(--aha-dark);
	max-width: 420px;
}
