/**
 * Fenomer Reservation Form Styles
 *
 * Multi-step modal popup + summary page.
 * Brand: żółty (#FFD400 / #FACC15), ciemny tekst (#0F172A).
 */

/* ============================================================ */
/* RESERVATION BUTTON                                            */
/* ============================================================ */
.fnm-reserve-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	background: #FACC15;
	color: #0F172A;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25);
}
.fnm-reserve-btn:hover:not(:disabled) {
	background: #FDE047;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(250, 204, 21, 0.35);
}
.fnm-reserve-btn:disabled {
	background: #e5e7eb;
	color: #9ca3af;
	cursor: not-allowed;
	box-shadow: none;
}
.fnm-btn-price {
	font-weight: 500;
	opacity: 0.85;
	font-size: 14px;
}

/* ============================================================ */
/* MODAL                                                          */
/* ============================================================ */
.fnm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.fnm-modal.fnm-open { display: flex; }
.fnm-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
}
.fnm-modal-content {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: fnmFadeIn 0.25s ease;
}
@keyframes fnmFadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.fnm-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f3f4f6;
	color: #0F172A;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}
.fnm-modal-close:hover { background: #e5e7eb; }

/* ============================================================ */
/* STEPS                                                          */
/* ============================================================ */
.fnm-step { display: none; }
.fnm-step.fnm-active { display: block; animation: fnmFadeIn 0.2s; }
.fnm-step h2 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 800;
	color: #0F172A;
}
.fnm-step h3 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	color: #0F172A;
}
.fnm-step-info {
	margin: 0 0 24px;
	font-size: 14px;
	color: #64748b;
}

/* ============================================================ */
/* FORM                                                           */
/* ============================================================ */
.fnm-form { display: flex; flex-direction: column; gap: 14px; }
.fnm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .fnm-row { grid-template-columns: 1fr; } }

.fnm-field { display: flex; flex-direction: column; gap: 4px; }
.fnm-field span {
	font-size: 13px;
	font-weight: 600;
	color: #0F172A;
}
.fnm-field input {
	padding: 12px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.15s;
	background: #fff;
}
.fnm-field input:focus {
	outline: none;
	border-color: #FACC15;
	box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.fnm-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
	cursor: pointer;
}
.fnm-checkbox input { margin-top: 3px; flex-shrink: 0; }
.fnm-checkbox a { color: #0F172A; text-decoration: underline; }

.fnm-conditional { display: flex; flex-direction: column; gap: 14px; }
.fnm-conditional[hidden] { display: none; }
.fnm-subhead {
	margin: 6px 0 -2px;
	font-size: 14px;
	font-weight: 800;
	color: #0F172A;
}

.fnm-form-error {
	background: #fee2e2;
	color: #991b1b;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	border-left: 4px solid #dc2626;
}

/* ============================================================ */
/* BUTTONS                                                        */
/* ============================================================ */
.fnm-btn-primary, .fnm-btn-secondary {
	padding: 14px 28px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.15s;
	border: none;
}
.fnm-btn-primary {
	background: #FACC15;
	color: #0F172A;
}
.fnm-btn-primary:hover:not(:disabled) { background: #FDE047; transform: translateY(-1px); }
.fnm-btn-primary:disabled { opacity: 0.6; cursor: wait; }
.fnm-btn-secondary {
	background: transparent;
	color: #0F172A;
	border: 1.5px solid #e5e7eb;
}
.fnm-btn-secondary:hover { background: #f9fafb; }

.fnm-step-buttons {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}
.fnm-btn-next {
	width: 100%;
	margin-top: 8px;
}

/* ============================================================ */
/* SUMMARY BOX (krok 2)                                          */
/* ============================================================ */
.fnm-summary-box {
	background: #f8fafc;
	border-radius: 12px;
	padding: 20px;
	margin: 16px 0;
}
.fnm-summary-data {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 16px;
	margin: 16px 0;
	font-size: 14px;
}
.fnm-summary-data dt { color: #64748b; }
.fnm-summary-data dd { margin: 0; color: #0F172A; font-weight: 600; }

.fnm-price-box {
	border-top: 1.5px dashed #e5e7eb;
	padding-top: 16px;
	margin-top: 16px;
}
.fnm-price-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 6px 0;
	font-size: 14px;
	color: #475569;
}
.fnm-price-row strong { color: #0F172A; font-size: 15px; }
.fnm-price-row.fnm-price-now {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 12px;
	margin-bottom: 6px;
	font-size: 16px;
}
.fnm-price-row.fnm-price-now strong { font-size: 22px; color: #0F172A; }
.fnm-price-row.fnm-price-total { font-size: 13px; color: #94a3b8; }

/* ============================================================ */
/* SPINNER + LOADING                                              */
/* ============================================================ */
.fnm-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #f3f4f6;
	border-top-color: #FACC15;
	border-radius: 50%;
	animation: fnmSpin 0.8s linear infinite;
	margin: 0 auto 24px;
}
@keyframes fnmSpin { to { transform: rotate(360deg); } }
.fnm-step-3 { text-align: center; padding: 40px 0; }
.fnm-step-3 h2 { text-align: center; }
.fnm-step-3 p { text-align: center; color: #64748b; }

.fnm-btn-primary.fnm-loading {
	color: transparent !important;
	position: relative;
}
.fnm-btn-primary.fnm-loading::after {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	width: 18px; height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid #0F172A;
	border-top-color: transparent;
	border-radius: 50%;
	animation: fnmSpin 0.6s linear infinite;
}

/* ============================================================ */
/* SUMMARY PAGE (po powrocie z PayNow)                           */
/* ============================================================ */
.fnm-summary {
	max-width: 560px;
	margin: 60px auto;
	padding: 40px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
	text-align: center;
}
.fnm-summary h2 {
	margin: 16px 0 12px;
	font-size: 26px;
	font-weight: 800;
	color: #0F172A;
}
.fnm-summary p { margin: 8px 0; color: #475569; line-height: 1.6; }
.fnm-summary-details {
	background: #f8fafc;
	border-radius: 12px;
	padding: 20px;
	margin: 24px 0 0;
	text-align: left;
}
.fnm-summary-details p { margin: 6px 0; }
.fnm-icon-check, .fnm-icon-x {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	font-size: 40px;
	font-weight: 700;
	color: #fff;
}
.fnm-icon-check { background: #16a34a; }
.fnm-icon-x { background: #dc2626; }
.fnm-summary-error h2 { color: #dc2626; }
