/* 申込モーダル（modal-order-form.php） */
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(16, 25, 43, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
.modal-panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	overflow-y: auto;
	background: var(--paper);
	padding: 56px 48px;
	transform: translateY(16px);
	transition: transform 0.3s;
}
.modal-overlay.is-open .modal-panel {
	transform: translateY(0);
}
.modal-panel h2 {
	font-size: 24px;
	margin-bottom: 32px;
}
.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 36px;
	height: 36px;
	font-size: 24px;
	line-height: 1;
	color: var(--ink);
}

.order-form .form-row {
	margin-bottom: 22px;
}
.order-form .form-row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.order-form label {
	display: block;
	font-size: 12.5px;
	letter-spacing: 0.05em;
	color: #555;
	margin-bottom: 8px;
}
.order-form input,
.order-form select,
.order-form textarea {
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	padding: 12px 14px;
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
	outline: 2px solid var(--gold);
	outline-offset: 1px;
}
.order-form textarea {
	resize: vertical;
}
.order-form .submit-btn {
	display: block;
	width: 100%;
	margin-top: 32px;
	font-size: 13px;
	letter-spacing: 0.2em;
	color: #fff;
	background: var(--vermillion);
	padding: 18px;
	text-align: center;
	transition: background 0.25s;
}
.order-form .submit-btn:hover {
	background: #8f3323;
}
.order-form .submit-btn:disabled {
	background: #b9beca;
	cursor: default;
}
.form-note {
	margin-top: 20px;
	font-size: 13px;
	line-height: 1.8;
	color: var(--vermillion);
}
.form-note-small {
	font-size: 11px;
	color: #888;
}

@media (max-width: 767px) {
	.modal-panel {
		padding: 40px 24px;
		max-height: 92vh;
	}
	.modal-panel h2 {
		font-size: 20px;
		margin-bottom: 24px;
	}
	.order-form .form-row--split {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
