/**
 * 見積もりフォームの見た目。
 * reference/top-page-final.html（確定版）の .form-card を再現したもの。
 * SWELLのテーマCSSと衝突しないよう、すべて .ldm- 接頭辞で閉じている。
 */

.ldm-form-card {
	--ldm-ink: #14233B;
	--ldm-paper: #F3EEE2;
	--ldm-accent: #FF4D2E;
	--ldm-gold: #FFC02E;
	--ldm-teal: #0E8A77;

	position: relative;
	overflow: hidden;
	background: var(--ldm-ink);
	color: var(--ldm-paper);
	border-radius: 22px;
	padding: 26px 24px;
	box-shadow: 0 24px 52px rgba(20, 35, 59, .3);
	font-family: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
	line-height: 1.7;
}

.ldm-form-card *,
.ldm-form-card *::before,
.ldm-form-card *::after {
	box-sizing: border-box;
}

/* 右上の「-50%」シール */
.ldm-seal {
	position: absolute;
	right: 16px;
	top: 16px;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: var(--ldm-accent);
	display: grid;
	place-items: center;
	text-align: center;
	transform: rotate(9deg);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
	z-index: 2;
}

.ldm-seal-n {
	font-size: 1.5rem;
	font-weight: 900;
	color: #fff;
	line-height: .8;
}

.ldm-seal-n span {
	font-size: .8rem;
}

.ldm-seal small {
	font-size: .56rem;
	font-weight: 700;
	color: #fff;
}

.ldm-form-title {
	font-size: 1.18rem;
	font-weight: 900;
	color: #fff;
	margin: 0;
	padding-right: 80px;
}

.ldm-lead {
	font-size: .8rem;
	color: #b9c6d6;
	font-weight: 500;
	margin: 4px 0 16px;
}

/* 入力欄 */
.ldm-fld {
	margin-bottom: 12px;
}

.ldm-fld label {
	font-size: .78rem;
	font-weight: 700;
	display: block;
	margin-bottom: 6px;
	color: #e7edf4;
}

.ldm-req {
	background: var(--ldm-accent);
	color: #fff;
	font-size: .58rem;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 6px;
	font-weight: 700;
	vertical-align: middle;
}

.ldm-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
}

@media (max-width: 420px) {
	.ldm-row2 {
		grid-template-columns: 1fr;
	}
}

.ldm-form-card input,
.ldm-form-card select {
	width: 100%;
	background: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px 13px;
	font-family: inherit;
	font-size: .92rem;
	color: var(--ldm-ink);
	font-weight: 500;
}

.ldm-form-card input[type="date"] {
	color-scheme: light;
	margin-top: 9px;
}

.ldm-hint {
	font-size: .72rem;
	color: var(--ldm-gold);
	font-weight: 700;
	margin: 5px 0 0;
	min-height: 1em;
}

/* 入力モードの切り替えリンク */
.ldm-switch {
	display: inline-block;
	background: none;
	border: none;
	color: #9fb0c8;
	font-family: inherit;
	font-size: .74rem;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 2px 0;
	margin-bottom: 10px;
}

.ldm-switch:hover {
	color: #fff;
}

/* 割引の目安表示 */
.ldm-estimate {
	background: rgba(255, 192, 46, .12);
	border: 1px solid rgba(255, 192, 46, .4);
	border-radius: 11px;
	padding: 13px 15px;
	margin-bottom: 12px;
	font-size: .86rem;
	font-weight: 700;
	color: #fff;
	min-height: 48px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ldm-estimate.ldm-muted {
	color: #9fb0c8;
	font-weight: 500;
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .14);
}

.ldm-km {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--ldm-gold);
}

.ldm-off {
	color: var(--ldm-gold);
}

.ldm-note {
	font-size: .72rem;
	color: #cdd9e8;
	font-weight: 500;
	width: 100%;
}

/* 日程の希望 */
.ldm-opts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ldm-opt {
	width: 100%;
	text-align: left;
	background: rgba(255, 255, 255, .07);
	border: 2px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
	padding: 11px 13px;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	font-size: .86rem;
	color: #fff;
	transition: .15s;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.ldm-opt small {
	font-size: .7rem;
	color: #9fb0c8;
	font-weight: 500;
}

.ldm-opt.is-on {
	border-color: var(--ldm-accent);
	background: rgba(255, 77, 46, .16);
}

.ldm-opt.is-on small {
	color: #ffd6c9;
}

/* ボット除け（画面に出さない） */
.ldm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 送信 */
.ldm-submit {
	width: 100%;
	background: var(--ldm-accent);
	color: #fff;
	border: none;
	font-family: inherit;
	font-weight: 900;
	font-size: 1.02rem;
	padding: 15px;
	border-radius: 12px;
	cursor: pointer;
	margin-top: 4px;
	box-shadow: 0 10px 24px rgba(255, 77, 46, .4);
	transition: .15s;
}

.ldm-submit:hover:not(:disabled) {
	transform: translateY(-2px);
}

.ldm-submit:disabled {
	opacity: .6;
	cursor: default;
}

.ldm-foot {
	text-align: center;
	font-size: .7rem;
	color: #8fa1b8;
	font-weight: 500;
	margin: 10px 0 0;
}

.ldm-error {
	background: rgba(255, 77, 46, .16);
	border: 1px solid var(--ldm-accent);
	border-radius: 10px;
	padding: 10px 13px;
	font-size: .82rem;
	font-weight: 700;
	color: #ffd6c9;
	margin: 0 0 10px;
}

/* 送信後のメッセージ */
.ldm-done {
	border-radius: 12px;
	padding: 15px 16px;
	font-size: .86rem;
	font-weight: 500;
	margin-top: 14px;
	line-height: 1.75;
}

.ldm-done b {
	display: block;
	font-weight: 900;
	margin-bottom: 4px;
}

.ldm-done.is-ok {
	background: rgba(14, 138, 119, .18);
	border: 1px solid var(--ldm-teal);
	color: #dff5f0;
}

.ldm-done.is-out {
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .2);
	color: #cdd9e8;
}

/* 数字は確定デザインどおり Anton を使う */
.ldm-seal-n,
.ldm-km {
	font-family: "Anton", "Zen Kaku Gothic New", system-ui, sans-serif;
	font-weight: 400;
}
