/* ==========================================================================
   Synergy4WBO Mentor Sign-Up — Front-end trigger button + popup modal
   Brand palette: primary #CA2474 (pink), secondaries #FFFFFF (white) and
   #F59E0B (amber). Fraunces (display) + Inter (body) type pairing.
   ========================================================================== */

.sms-trigger-btn,
.sms-submit-btn {
	--sms-ink: #1F2937;
	--sms-paper: #FFFFFF;
	--sms-primary: #CA2474;
	--sms-primary-dark: #A81D60;
	--sms-amber: #F59E0B;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	background: var(--sms-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.9em 2em;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.sms-trigger-btn:hover,
.sms-submit-btn:hover {
	background: var(--sms-primary-dark);
	transform: translateY(-1px);
}

.sms-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* ---- Modal overlay & shell ---- */

.sms-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(31, 41, 55, 0.62);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 20px;
	overflow-y: auto;
}

.sms-modal-overlay[hidden] {
	display: none;
}

.sms-modal {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: #FFFFFF;
	color: #1F2937;
	width: 100%;
	max-width: 560px;
	border-radius: 18px;
	padding: 40px 36px 36px;
	position: relative;
	box-shadow: 0 30px 60px rgba(31, 41, 55, 0.35);
	animation: sms-pop-in 0.22s ease;
	border-top: 4px solid #CA2474;
}

@keyframes sms-pop-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sms-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.8rem;
	line-height: 1;
	color: #1F2937;
	cursor: pointer;
	opacity: 0.55;
	padding: 6px;
}

.sms-modal-close:hover {
	opacity: 1;
}

.sms-modal-title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.7rem;
	font-weight: 600;
	margin: 0 0 6px;
	color: #1F2937;
}

.sms-modal-subtitle {
	margin: 0 0 24px;
	color: rgba(31, 41, 55, 0.7);
	font-size: 0.98rem;
}

/* ---- Form ---- */

.sms-form-row {
	margin-bottom: 18px;
}

.sms-form-row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.sms-field label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1F2937;
}

.sms-required {
	color: #F59E0B;
}

.sms-field input[type="text"],
.sms-field input[type="file"],
.sms-field textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 0.98rem;
	padding: 0.75em 0.9em;
	border: 1px solid rgba(31, 41, 55, 0.18);
	border-radius: 10px;
	background: #fff;
	color: #1F2937;
}

.sms-field input[type="text"]:focus,
.sms-field textarea:focus {
	outline: none;
	border-color: #CA2474;
	box-shadow: 0 0 0 3px rgba(202, 36, 116, 0.15);
}

.sms-field textarea {
	resize: vertical;
	min-height: 110px;
}

.sms-word-count {
	text-align: right;
	font-size: 0.8rem;
	color: rgba(31, 41, 55, 0.55);
	margin-top: 4px;
}

.sms-word-count.sms-word-count--over {
	color: #F59E0B;
	font-weight: 600;
}

.sms-field-hint {
	font-size: 0.78rem;
	color: rgba(31, 41, 55, 0.5);
	margin: 6px 0 0;
}

.sms-photo-preview {
	margin-top: 10px;
}

.sms-photo-preview img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #F59E0B;
}

.sms-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sms-form-actions {
	margin-top: 6px;
	margin-bottom: 0;
}

.sms-form-actions .sms-submit-btn {
	width: 100%;
}

.sms-form-message {
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 0.92rem;
}

.sms-form-message--success {
	background: rgba(31, 122, 77, 0.12);
	color: #1F7A4D;
}

.sms-form-message--error {
	background: rgba(202, 36, 116, 0.1);
	color: #A81D60;
}

@media (max-width: 480px) {
	.sms-form-row--split {
		grid-template-columns: 1fr;
	}

	.sms-modal {
		padding: 32px 22px 28px;
	}
}
