/* ======================================================
   mg-photo-laser — Styles du formulaire public
   ====================================================== */

.mg-photo-laser-wrap {
	max-width: 760px;
	margin: 0 auto;
	font-size: 15px;
	color: #1d2327;
}

/* ---- Notice ---- */
.mg-pl-notice {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 24px;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.5;
}

.mg-pl-notice--success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
	color: #1a6631;
}

.mg-pl-notice--error {
	background: #fcebea;
	border-left: 4px solid #d63638;
	color: #c02222;
}

/* ---- Fieldset ---- */
.mg-pl-fieldset {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 22px 26px;
	margin-bottom: 28px;
}

.mg-pl-fieldset legend {
	font-weight: 700;
	font-size: 17px;
	padding: 0 10px;
	color: #1d2327;
}

/* ---- Row layout ---- */
.mg-pl-row {
	margin-bottom: 18px;
}

.mg-pl-row label,
.mg-pl-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	color: #1d2327;
}

.mg-pl-req {
	color: #d63638;
	margin-left: 2px;
}

.mg-pl-row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.mg-pl-row--3col {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 18px;
}

@media ( max-width: 640px ) {
	.mg-pl-row--2col,
	.mg-pl-row--3col {
		grid-template-columns: 1fr;
	}
}

/* ---- Inputs, selects, textarea ---- */
.mg-pl-form input[type="text"],
.mg-pl-form input[type="email"],
.mg-pl-form input[type="tel"],
.mg-pl-form input[type="number"],
.mg-pl-form select,
.mg-pl-form textarea {
	width: 100%;
	padding: 10px 13px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #1d2327;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.mg-pl-form input:focus,
.mg-pl-form select:focus,
.mg-pl-form textarea:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.22 );
}

.mg-pl-field-invalid {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 2px rgba( 214, 54, 56, 0.2 ) !important;
}

.mg-pl-field-error {
	color: #d63638;
	font-size: 13px;
	margin-top: 5px;
	margin-bottom: 0;
}

.mg-pl-field-desc {
	color: #646970;
	font-size: 13px;
	margin-top: 5px;
	margin-bottom: 0;
}

/* ---- Format cards (Ovale / Rectangle) ---- */
.mg-pl-format-group {
	display: flex;
	gap: 20px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.mg-pl-format-group--invalid .mg-pl-format-card {
	border-color: #d63638;
}

.mg-pl-format-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 18px 28px;
	border: 2px solid #dcdcde;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	background: #fff;
	transition: border-color 0.15s, background 0.15s;
	font-family: inherit;
	min-width: 130px;
}

.mg-pl-format-card:hover,
.mg-pl-format-card.is-selected {
	border-color: #2271b1;
	background: #f0f6fc;
}

/* Formes CSS représentant les formats */
.mg-pl-format-shape {
	display: block;
	background: #8c8f94;
	transition: background 0.15s;
}

.mg-pl-format-card.is-selected .mg-pl-format-shape {
	background: #2271b1;
}

/* Ovale — portrait (vertical) */
.mg-pl-format-ovale {
	width: 52px;
	height: 72px;
	border-radius: 50%;
}

/* Rectangle — paysage (horizontal) */
.mg-pl-format-rect {
	width: 80px;
	height: 56px;
	border-radius: 3px;
}

/* ---- Orientation cards ---- */
.mg-pl-orientation-group {
	display: flex;
	gap: 16px;
	margin-top: 8px;
}

.mg-pl-orientation-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px 24px;
	border: 2px solid #dcdcde;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	transition: border-color 0.15s, background 0.15s;
	user-select: none;
	min-width: 120px;
}

.mg-pl-orientation-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mg-pl-orientation-card:hover,
.mg-pl-orientation-card.is-selected {
	border-color: #2271b1;
	background: #f0f6fc;
}

/* Forme rectangulaire représentant l'orientation */
.mg-pl-orient-icon {
	display: block;
	background: #8c8f94;
	border-radius: 3px;
	transition: background 0.15s;
}

.mg-pl-orient-h { width: 64px; height: 44px; } /* paysage */
.mg-pl-orient-v { width: 44px; height: 64px; } /* portrait */

.mg-pl-orientation-card.is-selected .mg-pl-orient-icon {
	background: #2271b1;
}

/* ---- Checkboxes extras ---- */
.mg-pl-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mg-pl-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 400;
	font-size: 14px;
	cursor: pointer;
}

.mg-pl-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
}

/* ---- File input ---- */
.mg-pl-form input[type="file"] {
	border: none;
	padding: 0;
	box-shadow: none;
}

/* ---- Submit row ---- */
.mg-pl-submit-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}

.mg-pl-btn-submit {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 13px 32px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	font-family: inherit;
}

.mg-pl-btn-submit:hover  { background: #135e96; }
.mg-pl-btn-submit:focus  { outline: 2px solid #2271b1; outline-offset: 2px; }
.mg-pl-btn-submit:disabled {
	background: #8c8f94;
	cursor: not-allowed;
}

/* ---- Spinner ---- */
.mg-pl-spinner {
	display: inline-block;
	width: 22px;
	height: 22px;
	border: 3px solid #dcdcde;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: mg-pl-spin 0.7s linear infinite;
}

@keyframes mg-pl-spin {
	to { transform: rotate( 360deg ); }
}
