/**
 * =====================================================
 * みつピタジョブ
 * 職業紹介求人応募ページ
 * Contact Form 7
 * =====================================================
 */

/* -----------------------------------------------------
 * フォーム全体
 * ----------------------------------------------------- */

.mpj-referral-entry__application-form {
	width: 100%;
}

.mpj-referral-entry__form-guide {
	margin: 0 0 24px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #edf8f3;
	color: #35564c;
	font-size: 15px;
	line-height: 1.8;
}

.mpj-referral-entry__form-content {
	width: 100%;
}

/* -----------------------------------------------------
 * CF7共通
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content .wpcf7 {
	width: 100%;
	margin: 0;
}

.mpj-referral-entry__form-content .wpcf7-form {
	margin: 0;
}

.mpj-referral-entry__form-content .wpcf7-form > p {
	margin: 0 0 24px;
}

.mpj-referral-entry__form-content label {
	display: block;
	margin: 0 0 8px;
	color: #234f42;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

/* -----------------------------------------------------
 * 必須・任意ラベル
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content .required,
.mpj-referral-entry__form-content .must {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e96868;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: middle;
}

.mpj-referral-entry__form-content .optional {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #dfe8e3;
	color: #4c655d;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: middle;
}

/* -----------------------------------------------------
 * 入力欄共通
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content input[type="text"],
.mpj-referral-entry__form-content input[type="email"],
.mpj-referral-entry__form-content input[type="tel"],
.mpj-referral-entry__form-content input[type="url"],
.mpj-referral-entry__form-content input[type="date"],
.mpj-referral-entry__form-content input[type="number"],
.mpj-referral-entry__form-content select,
.mpj-referral-entry__form-content textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #cfded6;
	border-radius: 12px;
	background: #ffffff;
	color: #263b35;
	font-size: 16px;
	line-height: 1.6;
	box-shadow: none;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.mpj-referral-entry__form-content textarea {
	min-height: 160px;
	resize: vertical;
}

.mpj-referral-entry__form-content select {
	min-height: 52px;
}

.mpj-referral-entry__form-content input::placeholder,
.mpj-referral-entry__form-content textarea::placeholder {
	color: #9aaba4;
	opacity: 1;
}

/* -----------------------------------------------------
 * フォーカス
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content input[type="text"]:focus,
.mpj-referral-entry__form-content input[type="email"]:focus,
.mpj-referral-entry__form-content input[type="tel"]:focus,
.mpj-referral-entry__form-content input[type="url"]:focus,
.mpj-referral-entry__form-content input[type="date"]:focus,
.mpj-referral-entry__form-content input[type="number"]:focus,
.mpj-referral-entry__form-content select:focus,
.mpj-referral-entry__form-content textarea:focus {
	border-color: #5ca98d;
	background: #fbfefc;
	box-shadow: 0 0 0 4px rgba(92, 169, 141, 0.14);
}

/* -----------------------------------------------------
 * readonly
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content input[readonly],
.mpj-referral-entry__form-content textarea[readonly] {
	background: #f2f7f4;
	color: #536b63;
	cursor: default;
}

/* -----------------------------------------------------
 * チェックボックス・ラジオ
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content .wpcf7-list-item {
	display: block;
	margin: 0 0 10px;
}

.mpj-referral-entry__form-content .wpcf7-list-item:last-child {
	margin-bottom: 0;
}

.mpj-referral-entry__form-content .wpcf7-list-item label {
	display: inline-flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	color: #354e46;
	font-weight: 500;
	cursor: pointer;
}

.mpj-referral-entry__form-content input[type="checkbox"],
.mpj-referral-entry__form-content input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 4px 0 0;
	accent-color: #2f8b6d;
}

/* -----------------------------------------------------
 * ファイル添付
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1px dashed #abc8bb;
	border-radius: 12px;
	background: #f7fbf9;
	color: #425b53;
	font-size: 14px;
}

/* -----------------------------------------------------
 * 送信ボタン
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content input[type="submit"],
.mpj-referral-entry__form-content button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 420px);
	min-height: 58px;
	margin: 10px auto 0;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background:
		linear-gradient(
			135deg,
			#2f8b6d 0%,
			#246f58 100%
		);
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	box-shadow: 0 10px 24px rgba(36, 111, 88, 0.22);
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		opacity 0.2s ease;
}

.mpj-referral-entry__form-content input[type="submit"]:hover,
.mpj-referral-entry__form-content input[type="submit"]:focus,
.mpj-referral-entry__form-content button[type="submit"]:hover,
.mpj-referral-entry__form-content button[type="submit"]:focus {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(36, 111, 88, 0.28);
	opacity: 0.96;
}

.mpj-referral-entry__form-content input[type="submit"]:disabled,
.mpj-referral-entry__form-content button[type="submit"]:disabled {
	cursor: not-allowed;
	opacity: 0.55;
	transform: none;
	box-shadow: none;
}

/* -----------------------------------------------------
 * 送信ボタン中央寄せ
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content .wpcf7-submit {
	display: flex;
}

.mpj-referral-entry__form-content p:has(.wpcf7-submit) {
	text-align: center;
}

/* -----------------------------------------------------
 * バリデーション
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content .wpcf7-not-valid {
	border-color: #dc6969 !important;
	background: #fffafa !important;
}

.mpj-referral-entry__form-content .wpcf7-not-valid-tip {
	display: block;
	margin-top: 7px;
	color: #c84e4e;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
}

/* -----------------------------------------------------
 * 送信結果メッセージ
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.8;
}

.mpj-referral-entry__form-content form.sent .wpcf7-response-output {
	border: 1px solid #8dc9ad;
	background: #eef9f3;
	color: #25684f;
}

.mpj-referral-entry__form-content form.invalid .wpcf7-response-output,
.mpj-referral-entry__form-content form.unaccepted .wpcf7-response-output,
.mpj-referral-entry__form-content form.payment-required .wpcf7-response-output {
	border: 1px solid #e4b0b0;
	background: #fff5f5;
	color: #974848;
}

.mpj-referral-entry__form-content form.spam .wpcf7-response-output,
.mpj-referral-entry__form-content form.failed .wpcf7-response-output,
.mpj-referral-entry__form-content form.aborted .wpcf7-response-output {
	border: 1px solid #e4c98d;
	background: #fffaf0;
	color: #806122;
}

/* -----------------------------------------------------
 * ローディング
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content .wpcf7-spinner {
	display: block;
	margin: 14px auto 0;
}

/* -----------------------------------------------------
 * 同意文
 * ----------------------------------------------------- */

.mpj-referral-entry__form-content .acceptance-text {
	margin: 6px 0 0;
	color: #536b63;
	font-size: 13px;
	line-height: 1.7;
}

/* -----------------------------------------------------
 * スマホ
 * ----------------------------------------------------- */

@media (max-width: 767px) {

	.mpj-referral-entry__form-guide {
		padding: 13px 14px;
		font-size: 14px;
	}

	.mpj-referral-entry__form-content .wpcf7-form > p {
		margin-bottom: 20px;
	}

	.mpj-referral-entry__form-content input[type="text"],
	.mpj-referral-entry__form-content input[type="email"],
	.mpj-referral-entry__form-content input[type="tel"],
	.mpj-referral-entry__form-content input[type="url"],
	.mpj-referral-entry__form-content input[type="date"],
	.mpj-referral-entry__form-content input[type="number"],
	.mpj-referral-entry__form-content select,
	.mpj-referral-entry__form-content textarea {
		padding: 13px 14px;
		font-size: 16px;
	}

	.mpj-referral-entry__form-content input[type="submit"],
	.mpj-referral-entry__form-content button[type="submit"] {
		width: 100%;
		min-height: 56px;
		font-size: 16px;
	}

}