/**
 * EFPIC Forms — modal + form UI (public)
 */

.efpic-form {
	width: 100%;
	max-width: 100%;
	margin: 0;
	position: relative;
}

.efpic-form__row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0.85rem 1rem;
	margin: 0 0 0.35rem;
	align-items: start;
}

.efpic-form__col {
	min-width: 0;
}

.efpic-form__package-label {
	margin: 0 0 1rem;
	padding: 0.65em 0.85em;
	background: #f3f3f3;
	border-left: 3px solid #2c2c2c;
	font-size: 0.92em;
	font-weight: 600;
}

.efpic-form__field {
	margin: 0 0 0.9rem;
}

.efpic-form__field:last-child {
	margin-bottom: 0;
}

.efpic-form__field label {
	display: block;
	margin: 0 0 0.35em;
	font-size: 0.9em;
	font-weight: 600;
	color: #222;
}

.efpic-form__req {
	color: #b00;
	margin-left: 0.15em;
}

.efpic-form__field input[type="text"],
.efpic-form__field input[type="email"],
.efpic-form__field input[type="tel"],
.efpic-form__field input[type="date"],
.efpic-form__field input[type="time"],
.efpic-form__field input[type="number"],
.efpic-form__field select,
.efpic-form__field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65em 0.75em;
	border: 1px solid #c8c8c8;
	border-radius: 3px;
	background: #fff;
	font: inherit;
	color: #222;
	box-sizing: border-box;
}

.efpic-form__field input:focus,
.efpic-form__field select:focus,
.efpic-form__field textarea:focus {
	outline: 2px solid #2c2c2c;
	outline-offset: 1px;
	border-color: #2c2c2c;
}

.efpic-form__radios {
	display: flex;
	flex-direction: column;
	gap: 0.45em;
}

.efpic-form__html {
	margin: 0 0 1rem;
	font-size: 0.95em;
	line-height: 1.5;
	color: #444;
}

.efpic-form__html:empty {
	display: none;
}

.efpic-form__field--file input[type="file"] {
	width: 100%;
	font: inherit;
}

.efpic-form__check input {
	margin-top: 0.2em;
}

.efpic-form__hp,
.efpic-form__honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.efpic-form__actions {
	margin-top: 1.25rem;
	text-align: center;
}

.efpic-form__submit,
.efpic-form-open-btn {
	display: inline-block;
	padding: 0.75em 1.5em;
	background: #c62828;
	color: #fff !important;
	border: 0;
	border-radius: 3px;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.efpic-form__submit:hover,
.efpic-form-open-btn:hover {
	background: #a61f1f;
}

.efpic-form__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.efpic-form__msg {
	margin: 1rem 0 0;
	padding: 0.75em 1em;
	border-radius: 3px;
	font-size: 0.92em;
	text-align: center;
}

.efpic-form__msg.is-ok {
	background: #e8f6ec;
	color: #146c2e;
}

.efpic-form__msg.is-err {
	background: #fdecea;
	color: #8a1f11;
}

.efpic-form--error {
	padding: 0.75em 1em;
	border: 1px dashed #c44;
	color: #833;
}

.efpic-form-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.efpic-form-modal[hidden] {
	display: none !important;
}

.efpic-form-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
}

.efpic-form-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(860px, 100%);
	max-height: min(90vh, 900px);
	overflow: auto;
	background: #fff;
	border-radius: 6px;
	padding: 1.5rem 1.35rem 1.75rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.efpic-form-modal__close {
	position: absolute;
	right: 0.5rem;
	top: 0.35rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	color: #555;
	cursor: pointer;
}

.efpic-form-modal__close:hover {
	color: #111;
}

.efpic-form-modal__title {
	margin: 0 1.5rem 1rem 0;
	font-size: 1.35rem;
	line-height: 1.3;
}

.efpic-form-modal__body .efpic-form__title {
	display: none;
}

body.efpic-form-modal-open {
	overflow: hidden;
}

@media (max-width: 720px) {
	.efpic-form__col {
		grid-column: 1 / -1 !important;
	}

	.efpic-form-modal__dialog {
		width: min(100%, 100%);
		padding: 1.15rem 1rem 1.35rem;
	}
}