/* T58 Clinic — custom styles layered on top of Tailwind (CDN). */

html { scroll-behavior: smooth; }
body { margin: 0; }

a { color: #12503a; text-decoration: none; }
a:hover { color: #0b3527; }
::selection { background: #cfe4d8; }

/* Focus rings that match the palette */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
	outline: 2px solid #3f8f6b;
	outline-offset: 2px;
}

/* ---- Light form fields (modals) ---- */
.field {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 17px;
	color: #1a1f1c;
	background: #fff;
	border: 1px solid #cfe0d7;
	border-radius: 2px;
	padding: 12px 14px;
	width: 100%;
}
.field::placeholder { color: #8a968f; }
.field:focus { border-color: #3f8f6b; }

/* ---- Dark form fields (contact section) ---- */
.dark-field {
	font-family: 'Source Serif 4', Georgia, serif;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #33473d;
	color: #f2f5f3;
	font-size: 19px;
	padding: 14px 2px;
	width: 100%;
}
.dark-field::placeholder { color: #8fa398; }
.dark-field:focus { border-bottom-color: #7fc0a2; outline: none; }

/* ---- Form status messages ---- */
.form-status { min-height: 1em; margin: 0; }
.form-status.is-error   { color: #d98b7a; }
.form-status.is-success { color: #7fc0a2; }
/* In light modals, colours read better against white */
.modal .form-status.is-success { color: #12503a; }
.modal .form-status.is-error   { color: #b4432c; }

/* ---- Modals ---- */
.modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: grid;
	place-items: center;
	padding: 20px;
}
.modal.hidden { display: none; }
.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 21, 18, 0.55);
	backdrop-filter: blur(2px);
	animation: fade 0.18s ease;
}
.modal-panel {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px;
	border-radius: 3px;
	box-shadow: 0 30px 80px rgba(14, 21, 18, 0.35);
	animation: pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-x {
	position: absolute;
	top: 16px;
	right: 18px;
	background: none;
	border: 0;
	font-size: 30px;
	line-height: 1;
	color: #5d6862;
	cursor: pointer;
}
.modal-x:hover { color: #1a1f1c; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* "or" divider between password form and Google button */
.or-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0 18px;
	color: #8a968f;
	font-size: 14px;
}
.or-divider::before,
.or-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2ebe5;
}

/* Prevent background scroll when a modal is open */
body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
	.modal-panel { padding: 28px 22px; }
}
