/* ==========================================================================
   NHPC Visites — Styles publics (formulaire de réservation, statut)
   Design ergonomique, responsive, accessible (compatible thèmes Elementor)
   Charte : bleu #1480C3, police "Plus Jakarta Sans"
   ========================================================================== */

.nhpc-booking-wrapper {
	--nhpc-primary: #1480C3;
	--nhpc-primary-dark: #0F6494;
	--nhpc-accent: #1480C3;
	--nhpc-error: #1480C3;
	--nhpc-success: #1e7e34;
	--nhpc-border: #bcdcf0;
	--nhpc-bg: #ffffff;
	--nhpc-text: #1480C3;
	max-width: 860px;
	margin: 0 auto;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	color: var(--nhpc-text);
}

.nhpc-honeypot { position: absolute; left: -9999px; top: -9999px; }

.nhpc-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px 24px;
	background: var(--nhpc-bg);
	padding: 28px;
	border-radius: 12px;
	box-shadow: 0 2px 14px rgba(20,128,195,0.10);
	border: 1px solid var(--nhpc-border);
}

.nhpc-field { display: flex; flex-direction: column; }
.nhpc-field-full { grid-column: 1 / -1; }

.nhpc-field label {
	font-weight: 600;
	font-size: 1.05rem;
	margin-bottom: 6px;
	color: var(--nhpc-primary);
}
.nhpc-field .req { color: var(--nhpc-primary); font-weight: 700; }

.nhpc-field input,
.nhpc-field select,
.nhpc-field textarea {
	padding: 12px 14px;
	border: 1px solid var(--nhpc-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 1.05rem;
	color: var(--nhpc-primary);
	background: #fbfdff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.nhpc-field input::placeholder,
.nhpc-field textarea::placeholder { color: #6fa8cf; opacity: 1; }

.nhpc-field input:focus,
.nhpc-field select:focus,
.nhpc-field textarea:focus {
	outline: none;
	border-color: var(--nhpc-primary);
	box-shadow: 0 0 0 3px rgba(20,128,195,0.18);
}
.nhpc-field input:invalid:not(:placeholder-shown) { border-color: var(--nhpc-primary); }

.nhpc-slot-remaining { margin-top: 4px; color: var(--nhpc-primary); font-size: 0.92rem; }

.nhpc-submit-btn {
	margin-top: 22px;
	width: 100%;
	padding: 15px 20px;
	background: #1480C3;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: background .15s ease, transform .1s ease;
}
.nhpc-submit-btn:hover { background: var(--nhpc-primary-dark); }
.nhpc-submit-btn:active { transform: scale(0.99); }
.nhpc-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.nhpc-btn-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nhpc-spin 0.7s linear infinite;
}
@keyframes nhpc-spin { to { transform: rotate(360deg); } }

.nhpc-form-messages { margin-bottom: 12px; }
.nhpc-form-messages .nhpc-alert {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 1rem;
	margin-bottom: 10px;
	font-family: inherit;
}
.nhpc-alert-error { background: #e8f4fb; color: #1480C3; border: 1px solid #bcdcf0; }
.nhpc-alert-success { background: #e8f4fb; color: #1480C3; border: 1px solid #bcdcf0; }

.nhpc-form-success {
	text-align: center;
	background: #e8f4fb;
	border: 1px solid #bcdcf0;
	border-radius: 12px;
	padding: 36px 24px;
	color: #1480C3;
}
.nhpc-form-success h3 { color: #1480C3; font-size: 1.4rem; }
.nhpc-form-success .nhpc-reference {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1480C3;
	letter-spacing: 0.5px;
}

/* Statut de visite */
.nhpc-status-lookup {
	max-width: 520px;
	margin: 0 auto;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	color: #1480C3;
}
.nhpc-status-lookup label { color: #1480C3; font-weight: 600; }
.nhpc-status-form { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.nhpc-status-form input {
	flex: 1; padding: 12px 14px; border: 1px solid #bcdcf0; border-radius: 8px;
	min-width: 220px; font-family: inherit; font-size: 1.05rem; color: #1480C3;
}
.nhpc-status-form input::placeholder { color: #6fa8cf; opacity: 1; }
.nhpc-status-form button {
	padding: 12px 22px; background: #1480C3; color: #fff; border: none;
	border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 1.05rem; font-weight: 700;
	transition: background .15s ease;
}
.nhpc-status-form button:hover { background: #0F6494; }
.nhpc-status-result { padding: 18px; border-radius: 10px; background: #f2f9fd; border: 1px solid #bcdcf0; color: #1480C3; }
.nhpc-status-result strong { color: #1480C3; }
.nhpc-status-error { color: #1480C3; font-weight: 600; }

/* Responsive : smartphones et tablettes (§12) */
@media (max-width: 720px) {
	.nhpc-form-grid { grid-template-columns: 1fr; padding: 20px; }
}
