/* =========================================================
   Fisimed — Corre das Mães • Formulário de inscrição
   ========================================================= */

.fcm-form,
.fcm-success,
.fcm-error {
	max-width: 640px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1a1a1a;
	box-sizing: border-box;
}
.fcm-form *,
.fcm-form *::before,
.fcm-form *::after { box-sizing: border-box; }

.fcm-form {
	background: #fff;
	border: 1px solid #e6e6ea;
	border-radius: 14px;
	padding: 32px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.fcm-form__head {
	text-align: center;
	margin-bottom: 28px;
	padding-bottom: 22px;
	border-bottom: 1px solid #f0f0f3;
}
.fcm-kicker {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #d62872;
}
.fcm-title {
	margin: 0 0 6px;
	font-size: 1.6rem;
	font-weight: 800;
	color: #1a1a1a;
}
.fcm-lead {
	margin: 0;
	font-size: 0.95rem;
	color: #555;
}

/* ----- Campos ----- */
.fcm-field {
	margin-bottom: 18px;
	border: 0;
	padding: 0;
}
.fcm-field > label,
.fcm-field > legend {
	display: block;
	margin-bottom: 6px;
	font-size: 0.92rem;
	font-weight: 600;
	color: #2a2a2a;
}
.fcm-req {
	color: #d62872;
	font-weight: 700;
}
.fcm-field input[type="email"],
.fcm-field input[type="text"],
.fcm-field input[type="tel"],
.fcm-field input[type="file"],
.fcm-field select,
.fcm-field textarea {
	width: 100%;
	padding: 11px 14px;
	font-size: 1rem;
	font-family: inherit;
	color: #1a1a1a;
	background: #fafafc;
	border: 1px solid #d8d8de;
	border-radius: 8px;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.fcm-field input:focus,
.fcm-field select:focus,
.fcm-field textarea:focus {
	outline: none;
	border-color: #d62872;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(214, 40, 114, 0.15);
}
.fcm-field textarea {
	resize: vertical;
	min-height: 60px;
}
.fcm-hint {
	margin: 6px 0 0;
	font-size: 0.82rem;
	color: #777;
}

/* ----- Radio ----- */
.fcm-radio-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.fcm-radio {
	flex: 1 1 calc(50% - 6px);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #fafafc;
	border: 1px solid #d8d8de;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.95rem;
	transition: border-color .18s ease, background .18s ease;
}
.fcm-radio:hover { border-color: #d62872; }
.fcm-radio input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: #d62872;
}
.fcm-radio input:checked + span { font-weight: 700; }
.fcm-radio:has(input:checked) {
	border-color: #d62872;
	background: #fff5f9;
}

/* ----- Checkbox / termo ----- */
.fcm-field--termo {
	background: #fff5f9;
	border: 1px solid #f6c8da;
	border-radius: 10px;
	padding: 14px 16px;
}
.fcm-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #2a2a2a;
}
.fcm-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: #d62872;
	flex-shrink: 0;
}

/* ----- PIX info ----- */
.fcm-field--pix .fcm-pix-info {
	background: #fef9ed;
	border: 1px solid #f3d98a;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 10px;
	font-size: 0.9rem;
	line-height: 1.5;
}
.fcm-field--pix .fcm-pix-info p { margin: 4px 0; }
.fcm-field--pix .fcm-pix-info code {
	background: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.92em;
	border: 1px solid #e8d27a;
}

/* ----- Botão submit ----- */
.fcm-btn {
	display: inline-block;
	width: 100%;
	padding: 14px 24px;
	margin-top: 8px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #d62872 0%, #ff6ba6 100%);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
	box-shadow: 0 6px 16px rgba(214, 40, 114, 0.32);
}
.fcm-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(214, 40, 114, 0.42);
}
.fcm-btn:active { transform: translateY(0); }
.fcm-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ----- Mensagens ----- */
.fcm-success {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	border-radius: 14px;
	padding: 36px 32px;
	text-align: center;
}
.fcm-success__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: #10b981;
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 700;
}
.fcm-success h2 {
	margin: 0 0 8px;
	color: #065f46;
}
.fcm-success p { margin: 6px 0; color: #1a1a1a; }
.fcm-success__numero {
	margin: 22px 0;
	padding: 18px 22px;
	background: #fff;
	border: 2px dashed #d62872;
	border-radius: 12px;
	text-align: center;
}
.fcm-success__numero-label {
	margin: 0 0 4px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #d62872;
}
.fcm-success__numero-codigo {
	display: inline-block;
	margin: 0;
	font-size: 1.8rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: #1a1a1a;
	text-decoration: none;
}
.fcm-success__numero-codigo--link {
	color: #d62872;
	padding: 6px 14px;
	border-radius: 8px;
	transition: background .18s ease, color .18s ease, transform .18s ease;
	cursor: pointer;
}
.fcm-success__numero-codigo--link:hover {
	background: #d62872;
	color: #fff;
	transform: translateY(-1px);
	text-decoration: none;
}
.fcm-success__numero-codigo--link::after {
	content: ' →';
	display: inline-block;
	margin-left: 4px;
	transition: transform .18s ease;
}
.fcm-success__numero-codigo--link:hover::after {
	transform: translateX(3px);
}
.fcm-success__numero-hint {
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: #666;
}

.fcm-btn--ghost {
	width: auto;
	margin-top: 8px;
	padding: 10px 18px;
	font-size: 0.92rem;
	background: #fff;
	color: #d62872;
	border: 2px solid #d62872;
	box-shadow: none;
}
.fcm-btn--ghost:hover {
	background: #d62872;
	color: #fff;
	box-shadow: 0 6px 16px rgba(214, 40, 114, 0.32);
}

.fcm-success__pix {
	margin-top: 20px;
	padding: 14px 18px;
	background: #fef9ed;
	border: 1px solid #f3d98a;
	border-radius: 10px;
	text-align: left;
}
.fcm-success__pix p:first-child { margin-top: 0; }
.fcm-success__pix p:last-child  { margin-bottom: 0; }
.fcm-pix-key {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	background: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #e8d27a;
	display: inline-block;
}

.fcm-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 10px;
	padding: 14px 18px;
	color: #991b1b;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.fcm-error strong { color: #7f1d1d; }

/* =========================================================
   Lista pública de inscrições (com auth)
   ========================================================= */
.fcm-lista {
	max-width: 1100px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1a1a1a;
}
.fcm-lista__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.fcm-lista__title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 800;
	color: #1a1a1a;
}
.fcm-lista__logout {
	font-size: 0.85rem;
	color: #666;
	text-decoration: none;
	padding: 6px 14px;
	border: 1px solid #d8d8de;
	border-radius: 999px;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.fcm-lista__logout:hover {
	background: #d62872;
	color: #fff;
	border-color: #d62872;
}

/* ----- Stats cards ----- */
.fcm-lista__stats {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-bottom: 22px;
}
.fcm-lista__stat {
	background: #fff;
	border: 1px solid #e6e6ea;
	border-radius: 12px;
	padding: 16px 14px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.fcm-lista__stat-num {
	font-size: 1.6rem;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1;
}
.fcm-lista__stat-num--ok       { color: #10b981; }
.fcm-lista__stat-num--pendente { color: #d97706; }
.fcm-lista__stat-label {
	font-size: 0.78rem;
	color: #666;
	letter-spacing: 0.05em;
}

/* ----- Search ----- */
.fcm-lista__search-wrap { margin-bottom: 14px; }
.fcm-lista__search {
	width: 100%;
	padding: 11px 14px;
	font-size: 0.95rem;
	background: #fafafc;
	border: 1px solid #d8d8de;
	border-radius: 8px;
	font-family: inherit;
}
.fcm-lista__search:focus {
	outline: none;
	border-color: #d62872;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(214, 40, 114, 0.15);
}

/* ----- Tabela ----- */
.fcm-lista__table-wrap {
	background: #fff;
	border: 1px solid #e6e6ea;
	border-radius: 12px;
	overflow: hidden;
	overflow-x: auto;
}
.fcm-lista__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}
.fcm-lista__table thead {
	background: #fafafc;
	border-bottom: 2px solid #e6e6ea;
}
.fcm-lista__table th {
	text-align: left;
	padding: 12px 14px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #666;
}
.fcm-lista__table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f0f0f3;
	vertical-align: middle;
}
.fcm-lista__table tbody tr:last-child td { border-bottom: 0; }
.fcm-lista__table tbody tr[data-fcm-row-id] {
	cursor: pointer;
	transition: background .15s ease;
}
.fcm-lista__table tbody tr[data-fcm-row-id]:hover,
.fcm-lista__table tbody tr[data-fcm-row-id]:focus {
	background: #fff5f9;
	outline: none;
}
.fcm-lista__table tbody tr[data-fcm-row-id]:focus-visible {
	box-shadow: inset 3px 0 0 #d62872;
}

.fcm-lista__num {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	color: #d62872;
	white-space: nowrap;
}
.fcm-lista__camisa {
	font-weight: 700;
	text-align: center;
}

.fcm-lista__pago,
.fcm-lista__pendente {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}
.fcm-lista__pago    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.fcm-lista__pendente { background: #fef9ed; color: #92400e; border: 1px solid #fde68a; }

.fcm-lista__empty {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 0.95rem;
}

@media (max-width: 720px) {
	.fcm-lista__stats { grid-template-columns: repeat(3, 1fr); }
	.fcm-lista__stat-num { font-size: 1.3rem; }
	.fcm-lista__table th,
	.fcm-lista__table td { padding: 10px 8px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
	.fcm-lista__stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Modal de detalhes da inscrição
   ========================================================= */
.fcm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: fcmFadeIn .18s ease-out;
}
.fcm-modal[hidden] { display: none; }
@keyframes fcmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fcmSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fcm-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}
.fcm-modal__content {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 540px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: fcmSlideUp .22s ease-out;
}
.fcm-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	background: #f4f4f6;
	border: 0;
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	color: #666;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}
.fcm-modal__close:hover { background: #d62872; color: #fff; }

.fcm-modal__header {
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f0f3;
}
.fcm-modal__num {
	margin: 0 0 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #d62872;
}
.fcm-modal__nome {
	margin: 0 0 6px;
	font-size: 1.4rem;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.2;
}
.fcm-modal__data {
	margin: 0;
	font-size: 0.82rem;
	color: #888;
}

.fcm-modal__status {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.fcm-modal__comprovante {
	font-size: 0.85rem;
	color: #d62872;
	text-decoration: none;
	font-weight: 600;
	padding: 4px 12px;
	border: 1px solid #d62872;
	border-radius: 999px;
	transition: background .18s ease, color .18s ease;
}
.fcm-modal__comprovante:hover {
	background: #d62872;
	color: #fff;
}

.fcm-modal__dl {
	margin: 0;
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 10px 16px;
}
.fcm-modal__dl dt {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #888;
	text-transform: uppercase;
	padding-top: 2px;
}
.fcm-modal__dl dd {
	margin: 0;
	font-size: 0.95rem;
	color: #1a1a1a;
	line-height: 1.45;
	word-break: break-word;
}
.fcm-modal__dl dd a {
	color: #d62872;
	text-decoration: none;
}
.fcm-modal__dl dd a:hover { text-decoration: underline; }

@media (max-width: 540px) {
	.fcm-modal__content { padding: 24px 20px; }
	.fcm-modal__nome { font-size: 1.2rem; }
	.fcm-modal__dl { grid-template-columns: 1fr; gap: 4px 0; }
	.fcm-modal__dl dt { padding-top: 8px; }
	.fcm-modal__dl dd { padding-bottom: 4px; border-bottom: 1px solid #f0f0f3; }
	.fcm-modal__dl dd:last-of-type { border-bottom: 0; }
}

/* ----- Honeypot ----- */
.fcm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ----- Responsivo ----- */
@media (max-width: 600px) {
	.fcm-form { padding: 22px 18px; border-radius: 10px; }
	.fcm-title { font-size: 1.35rem; }
	.fcm-radio { flex: 1 1 100%; }
}
