/**
 * Tfilah EN — Reminders styles
 * ═══════════════════════════════════════════════════════════
 */

/* ─── Trigger button ─── */
.trm-wrap {
	margin: 32px 0;
	text-align: center;
}
.trm-trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--gold, #9b7d3a);
	color: #fff;
	border: none;
	padding: 14px 26px;
	border-radius: 6px;
	font-size: 16px;
	font-family: var(--font-body, system-ui);
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.trm-trigger:hover {
	background: var(--brown, #6b4f2a);
}
.trm-trigger:active {
	transform: translateY(1px);
}
.trm-bell {
	font-size: 20px;
}

/* ─── Modal ─── */
.trm-modal[hidden] {
	display: none;
}
.trm-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.trm-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 10, 0.55);
	cursor: pointer;
}
.trm-dialog {
	position: relative;
	background: #fff;
	max-width: 480px;
	width: calc(100% - 32px);
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 8px;
	padding: 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	animation: trm-fade-in .25s ease-out;
}
@keyframes trm-fade-in {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.trm-close {
	position: absolute;
	top: 8px; right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	color: #888;
	cursor: pointer;
	padding: 4px 12px;
	line-height: 1;
}
.trm-close:hover {
	color: #333;
}

.trm-title {
	margin: 0 0 8px;
	font-family: var(--font-display, serif);
	font-size: 26px;
	color: var(--brown-dark, #3d2c14);
}
.trm-subtitle {
	margin: 0 0 24px;
	color: #666;
	font-size: 14px;
}

/* ─── Form ─── */
.trm-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.trm-field label {
	display: block;
	font-size: 13px;
	color: #444;
	margin-bottom: 4px;
	font-weight: 500;
}
.trm-optional {
	color: #999;
	font-weight: 400;
}
.trm-required {
	color: #c43e3e;
}
.trm-field input,
.trm-field select {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	border: 1.5px solid #ccc;
	border-radius: 4px;
	background: #fff;
	font-family: inherit;
	box-sizing: border-box;
}
.trm-field input:focus,
.trm-field select:focus {
	outline: none;
	border-color: var(--gold, #9b7d3a);
}
.trm-field-row {
	display: flex;
	gap: 12px;
}
.trm-half {
	flex: 1;
}

/* ─── Actions ─── */
.trm-actions {
	margin-top: 8px;
}
.trm-submit {
	background: var(--gold, #9b7d3a);
	color: #fff;
	border: none;
	padding: 14px 32px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
	transition: background .2s;
}
.trm-submit:hover {
	background: var(--brown, #6b4f2a);
}
.trm-submit:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.trm-status {
	margin-top: 12px;
	padding: 12px;
	border-radius: 4px;
	font-size: 14px;
}
.trm-status:empty {
	display: none;
}
.trm-status.is-success {
	background: #e8f5e9;
	color: #2d6a31;
	border: 1px solid #b9d8b9;
}
.trm-status.is-error {
	background: #fdecea;
	color: #8b1f1f;
	border: 1px solid #f1c0c0;
}

.trm-fineprint {
	font-size: 12px;
	color: #888;
	margin-top: 16px;
	margin-bottom: 0;
	line-height: 1.5;
}

/* ─── Status page (after confirm/manage) ─── */
.trm-status-page {
	padding: 80px 32px;
	text-align: center;
}
.trm-status-inner {
	max-width: 540px;
	margin: 0 auto;
}
.trm-status-page h1 {
	font-family: var(--font-display, serif);
	color: var(--brown-dark, #3d2c14);
	margin-bottom: 16px;
}
.trm-status-content {
	font-size: 17px;
	color: #444;
	line-height: 1.6;
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
	.trm-dialog {
		padding: 24px 20px;
	}
	.trm-field-row {
		flex-direction: column;
	}
	.trm-trigger {
		font-size: 15px;
		padding: 12px 22px;
	}
}
