/* MGL Document DL — フロント表示 */
.mgl-ddl-wrap {
	max-width: 600px;
	margin: 56px auto;     /* 上下の余白＋左右中央 */
	font-size: 15px;
	line-height: 1.7;
	color: #222;
	text-align: center;    /* 中央寄せ */
}
.mgl-ddl-loading {
	padding: 24px 0;
	color: #888;
	text-align: center;
}

/* テスト用フォーム */
.mgl-ddl-testform {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border: 1px solid #e2e4e8;
	border-radius: 10px;
	background: #fff;
}
.mgl-ddl-testnote {
	margin: 0 0 4px;
	font-size: 12px;
	color: #9a6700;
	background: #fff8e1;
	border: 1px solid #ffe08a;
	padding: 6px 10px;
	border-radius: 6px;
}
.mgl-ddl-testform label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
	font-size: 14px;
}
.mgl-ddl-testform .req {
	display: inline-block;
	margin-left: 8px;
	font-size: 11px;
	font-weight: 700;
	color: #b32d2e;
	vertical-align: middle;
}
.mgl-ddl-testform input {
	padding: 10px 12px;
	border: 1px solid #c7ccd3;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 400;
}
.mgl-ddl-testform input:focus {
	outline: none;
	border-color: #2563a6;
	box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.15);
}
.mgl-ddl-testform button {
	margin-top: 4px;
	padding: 14px 20px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(to right, #009DE7 0%, #005BAC 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s;
}
.mgl-ddl-testform button:hover { filter: brightness(1.07); }
.mgl-ddl-testform button:disabled { background: #9bb3cc; cursor: default; }

.mgl-ddl-msg {
	min-height: 1em;
	font-size: 13px;
	color: #b32d2e;
}

/* 完了表示（枠線・背景なし・中央寄せ） */
.mgl-ddl-complete {
	padding: 44px 20px;
	text-align: center;
}
.mgl-ddl-wrap .mgl-ddl-complete-title {
	margin: 0 0 18px !important;
	font-size: 28px !important;
	font-weight: 700;
	line-height: 1.4 !important;
	color: #005BAC !important;
}
.mgl-ddl-complete-msg {
	margin: 0 auto;
	max-width: 480px;
	font-size: 16px;
	line-height: 1.8;
	color: #3e4c59;
	white-space: pre-line;
}
.mgl-ddl-dl-btn-wrap { margin: 32px 0 0; text-align: center; }
.mgl-ddl-dl-btn {
	display: inline-block;
	padding: 16px 46px;
	border-radius: 8px;
	background: linear-gradient(to right, #009DE7 0%, #005BAC 100%);
	color: #fff !important;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none !important; /* テーマ/Elementorのリンク下線より優先 */
	transition: filter 0.15s;
}
.mgl-ddl-dl-btn:hover { filter: brightness(1.07); }
.mgl-ddl-wrap .mgl-ddl-note {
	margin: 32px 0 0 !important; /* ボタンとの間隔。テーマ側の余白指定より優先 */
	font-size: 14px;
	color: #5c6b60;
	line-height: 1.7;
}

/* エラー */
.mgl-ddl-error {
	padding: 18px;
	border: 1px solid #f0c6c6;
	border-radius: 8px;
	background: #fdf2f2;
	color: #8a1f1f;
	text-align: center;
	font-size: 14px;
}

/* ===== 完了画面：1カラム全幅化（Elementor 2カラム内に置いた場合の送信完了時） =====
   送信完了時に frontend.js が付与：隣カラムを隠し、フォームのカラムを全幅にする。 */
.mgl-ddl-col-hidden { display: none !important; }
.mgl-ddl-col-full {
	flex: 1 1 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* ===== フォームを白カードで囲う（右カラムのデザイン） ===== */
.mgl-ddl-form-area {
	background: #fff;
	border: 1px solid #e3e9f0;
	border-radius: 12px;
	padding: 26px 26px 24px;
	box-shadow: 0 4px 18px rgba(0, 91, 172, 0.08);
	text-align: left;
}
.mgl-ddl-form-area .mgl-ddl-testform { border: 0; background: transparent; padding: 0; }

/* ===== HubSpotフォーム（Classic・インライン描画）：サイト公式ブランド青に調整 ===== */
.mgl-ddl-wrap .hs-form-field { margin: 0 0 16px; text-align: left; }
.mgl-ddl-wrap .hs-form-field > label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: #084882; }
.mgl-ddl-wrap .hs-form-field .hs-field-desc { margin: 0 0 6px; font-size: 12px; color: #6b7280; }
.mgl-ddl-wrap .hs-input:not([type=checkbox]):not([type=radio]) {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #c7ccd3;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
}
.mgl-ddl-wrap .hs-input:focus { outline: none; border-color: #005BAC; box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.15); }
.mgl-ddl-wrap .hs-button {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
	padding: 14px 20px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(to right, #009DE7 0%, #005BAC 100%) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s;
}
.mgl-ddl-wrap .hs-button:hover { filter: brightness(1.07); }
.mgl-ddl-wrap .hs-error-msgs label { color: #b32d2e; font-size: 12px; font-weight: 400; }
.mgl-ddl-wrap ul.inputs-list { margin: 0; padding: 0; list-style: none; }
