/* Tfilah EN Reminders — Frontend styles */

/* === Modal overlay === */
.tfer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(61, 45, 24, 0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s;
}
.tfer-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.tfer-modal {
	background: #faf6ee;
	border-radius: 8px;
	padding: 0;
	max-width: 480px;
	width: 100%;
	position: relative;
	font-family: 'Crimson Pro', Georgia, serif;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	transform: translateY(20px);
	transition: transform 0.28s;
	max-height: 92vh;
	overflow-y: auto;
}
.tfer-overlay.active .tfer-modal {
	transform: translateY(0);
}

.tfer-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #9a856a;
	line-height: 1;
	padding: 4px;
}
.tfer-close:hover {
	color: #6b4f2a;
}

.tfer-header {
	background: linear-gradient(135deg, #6b4f2a, #9b7d3a);
	color: #fdf8f0;
	padding: 22px 28px 18px;
	text-align: center;
	border-radius: 8px 8px 0 0;
}
.tfer-header h2 {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 8px;
	color: #fdf8f0;
	letter-spacing: 0.5px;
}
.tfer-date-pill {
	display: inline-block;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 4px 14px;
	border-radius: 14px;
	font-size: 0.85rem;
}
.tfer-date-pill .tfer-greg {
	display: block;
	font-size: 0.75rem;
	opacity: 0.85;
	margin-top: 1px;
}

.tfer-body {
	padding: 24px 28px;
}

.tfer-steps {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-bottom: 18px;
}
.tfer-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d9cdb6;
}
.tfer-dot.active {
	background: #9b7d3a;
}

.tfer-step {
	font-size: 0.95rem;
	color: #3d2d18;
}
.tfer-step h3 {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.4rem;
	font-weight: 600;
	color: #3d2d18;
	margin: 12px 0 8px;
}

.tfer-icon {
	text-align: center;
	font-size: 2.4rem;
	margin-bottom: 12px;
}

.tfer-field {
	margin-bottom: 14px;
}
.tfer-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #6b4f2a;
	margin-bottom: 4px;
}
.tfer-field input[type=text],
.tfer-field input[type=email],
.tfer-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d9cdb6;
	border-radius: 5px;
	font-family: inherit;
	font-size: 0.95rem;
	box-sizing: border-box;
	background: #fff;
	color: #3d2d18;
}
.tfer-field input:focus,
.tfer-field select:focus {
	border-color: #9b7d3a;
	outline: none;
	box-shadow: 0 0 0 3px rgba(155, 125, 58, 0.15);
}

.tfer-err {
	color: #c62828;
	font-size: 0.82rem;
	min-height: 16px;
	margin-top: 4px;
}

.tfer-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.tfer-chip {
	padding: 7px 14px;
	border: 1px solid #d9cdb6;
	border-radius: 18px;
	background: #faf6ee;
	font-size: 0.82rem;
	cursor: pointer;
	font-family: inherit;
	color: #6b4f2a;
	transition: 0.12s;
}
.tfer-chip:hover {
	border-color: #9b7d3a;
}
.tfer-chip.active {
	border-color: #9b7d3a;
	background: #9b7d3a;
	color: #fff;
	font-weight: 500;
}

.tfer-btn-primary {
	width: 100%;
	background: linear-gradient(135deg, #6b4f2a, #9b7d3a);
	color: #fdf8f0;
	border: none;
	border-radius: 6px;
	padding: 13px 22px;
	font-size: 0.95rem;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: 0.5px;
	transition: opacity 0.15s;
	margin-top: 6px;
}
.tfer-btn-primary:hover {
	opacity: 0.9;
}
.tfer-btn-primary:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Step 2 / Step 3 styling */
.tfer-email-display {
	background: #f5f0e8;
	border: 1px solid #d9cdb6;
	border-radius: 5px;
	padding: 9px 14px;
	font-family: 'Courier New', monospace;
	font-size: 0.92rem;
	color: #3d2d18;
	text-align: center;
	margin: 10px 0 14px;
	word-break: break-all;
}

.tfer-meta {
	font-size: 0.82rem;
	color: #9a856a;
	margin-top: 12px;
	text-align: center;
}

.tfer-resend {
	text-align: center;
	margin-top: 18px;
	font-size: 0.85rem;
	color: #9a856a;
}
.tfer-resend a {
	color: #9b7d3a;
	font-weight: 500;
}

.tfer-step h3 {
	text-align: center;
}
#tferStep2 p, #tferStep3 p {
	text-align: center;
	margin: 8px 0;
	color: #6b4f2a;
}

.tfer-donate-block {
	background: #fff8ee;
	border: 1px solid #e8d8b0;
	border-radius: 6px;
	padding: 14px 16px;
	margin-top: 18px;
	text-align: center;
}
.tfer-donate-block p {
	margin: 0 0 10px;
	font-size: 0.9rem;
	color: #6b4f2a;
}
.tfer-btn-donate {
	display: inline-block;
	background: #e07820;
	color: #fff;
	padding: 9px 20px;
	border-radius: 5px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}
.tfer-btn-donate:hover {
	background: #c66a18;
	color: #fff;
}

/* === Scroll popup === */
.tfer-sp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(61, 45, 24, 0.55);
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s;
}
.tfer-sp-overlay.active {
	opacity: 1;
	pointer-events: all;
}
.tfer-sp-modal {
	background: #faf6ee;
	border-radius: 8px;
	padding: 32px 28px 24px;
	max-width: 420px;
	width: 100%;
	position: relative;
	font-family: 'Crimson Pro', Georgia, serif;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	transform: translateY(30px);
	transition: transform 0.32s;
}
.tfer-sp-overlay.active .tfer-sp-modal {
	transform: translateY(0);
}
.tfer-sp-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #aaa;
	line-height: 1;
	padding: 4px;
}
.tfer-sp-icon {
	font-size: 2.6rem;
	text-align: center;
	margin-bottom: 12px;
}
.tfer-sp-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: #3d2d18;
	text-align: center;
	margin: 0 0 14px;
}
.tfer-sp-text {
	font-size: 0.95rem;
	color: #6b4f2a;
	text-align: center;
	line-height: 1.6;
	margin: 0 0 22px;
}
.tfer-sp-btn-main {
	width: 100%;
	background: linear-gradient(135deg, #6b4f2a, #9b7d3a);
	color: #fdf8f0;
	border: none;
	border-radius: 6px;
	padding: 13px 22px;
	font-size: 0.95rem;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}
.tfer-sp-btn-main:hover {
	opacity: 0.9;
}
.tfer-sp-btn-skip {
	width: 100%;
	background: none;
	border: none;
	color: #9a856a;
	font-size: 0.85rem;
	cursor: pointer;
	font-family: inherit;
	padding: 8px;
	text-decoration: underline;
}

/* === Thank-you toast === */
.tfer-toast {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(-20px);
	background: #4a6e0a;
	color: #fff;
	padding: 14px 28px;
	border-radius: 6px;
	font-family: 'Crimson Pro', Georgia, serif;
	font-size: 1rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	z-index: 100000;
	opacity: 0;
	transition: all 0.3s;
}
.tfer-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
	.tfer-modal { max-height: 100vh; border-radius: 0; }
	.tfer-overlay { padding: 0; }
	.tfer-header h2 { font-size: 1.3rem; }
}
