/* Online Application Section - 在线申请模块 */

.online-apply {
	position: relative;
	padding: 48px 0 56px;
	background: linear-gradient(135deg, #1e8a47 0%, #146c35 50%, #0d5227 100%);
	overflow: hidden;
}

/* 背景装饰：握手图案 */
.online-apply::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='500' viewBox='0 0 1200 500'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Crect width='1200' height='500' fill='%23ffffff' fill-opacity='0.02'/%3E%3Cg opacity='0.08'%3E%3Cellipse cx='300' cy='400' rx='280' ry='100' fill='%23ffffff'/%3E%3Cellipse cx='900' cy='400' rx='280' ry='100' fill='%23ffffff'/%3E%3Cpath d='M200 380c30-40 70-60 120-60 60 0 100 30 140 60M500 380c30-40 70-60 120-60 60 0 100 30 140 60M800 380c30-40 70-60 120-60 60 0 100 30 140 60' stroke='%23ffffff' stroke-width='8' stroke-linecap='round'/%3E%3C/g%3E%3Cg stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M0 250h1200M0 125h1200M0 375h1200M300 0v500M600 0v500M900 0v500'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	background-size: cover;
	background-position: center;
	pointer-events: none;
	z-index: 0;
}

.online-apply__inner {
	position: relative;
	z-index: 1;
}

/* ========== 标题 ========== */
.online-apply__header {
	text-align: center;
	margin-bottom: 36px;
}

.online-apply__title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
	margin: 0;
	letter-spacing: 0.5px;
}

.online-apply__title-accent {
	color: #ff8a1f;
}

/* ========== 表单区 ========== */
.online-apply__body {
	max-width: 1180px;
	margin: 0 auto;
}

.online-apply__grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: stretch;
}

/* ========== 字段区：3列 × 2行 grid ==========
 * | name (1,1)  | company (1,2)  | message (1-2, 3) |
 * | contact (2,1) | product (2,2) |       ↑         |
 */
.online-apply__fields {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto auto;
	grid-template-areas:
		"name     company   message"
		"contact  product   message";
	gap: 16px;
	align-items: stretch;
}

.online-apply__field--name    { grid-area: name; }
.online-apply__field--company { grid-area: company; }
.online-apply__field--message { grid-area: message; }
.online-apply__field--contact { grid-area: contact; }
.online-apply__field--product { grid-area: product; }

/* ========== 输入框样式 ========== */
.online-apply__field {
	position: relative;
	margin: 0;
	display: block;
}

.online-apply__field input,
.online-apply__field textarea {
	width: 100%;
	height: 100%;
	padding: 14px 44px 14px 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #333333;
	background: rgba(255, 255, 255, 0.92);
	border: 2px solid transparent;
	border-radius: 0;
	transition: border-color 0.2s ease, background 0.2s ease;
	font-family: inherit;
	box-sizing: border-box;
}

.online-apply__field textarea {
	resize: vertical;
	min-height: 100%;
	padding-top: 14px;
}

.online-apply__field input::placeholder,
.online-apply__field textarea::placeholder {
	color: #8aa091;
	opacity: 1;
}

.online-apply__field input:focus,
.online-apply__field textarea:focus {
	outline: none;
	border-color: #ff8a1f;
	background: #ffffff;
}

/* 输入框图标 */
.online-apply__field-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.online-apply__field-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.online-apply__field-icon--top {
	top: 18px;
	transform: none;
}

/* 蜜罐字段 */
.online-apply__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ========== 按钮区 ========== */
.online-apply__actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: flex-start;
	min-width: 170px;
}

.online-apply__btn {
	display: block;
	width: 100%;
	min-width: 170px;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.25s ease;
	font-family: inherit;
	white-space: nowrap;
}

.online-apply__btn--consult {
	background: #ffffff;
	color: #146c35;
	border: 2px solid #ffffff;
}

.online-apply__btn--consult:hover {
	background: rgba(255, 255, 255, 0.92);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.online-apply__btn--submit {
	background: #ff8a1f;
	color: #ffffff;
	border: 2px solid #ff8a1f;
}

.online-apply__btn--submit:hover {
	background: #f07a10;
	border-color: #f07a10;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 138, 31, 0.4);
}

.online-apply__btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none !important;
}

/* 状态提示 */
.online-apply__status {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	min-height: 21px;
	color: #ffffff;
}

.online-apply__status.is-success {
	color: #a8f0c0;
}

.online-apply__status.is-error {
	color: #ffc9c9;
}

/* 分隔线 */
.online-apply__footer::before {
	content: '';
	display: block;
	height: 1px;
	background: rgba(255, 255, 255, 0.2);
	margin: 36px 0 28px;
}

/* ========== 底部热线 ========== */
.online-apply__footer {
	margin-top: 8px;
}

.online-apply__hotline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #ffffff;
}

.online-apply__hotline-icon {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.online-apply__hotline-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.online-apply__hotline-label {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

.online-apply__hotline-number {
	font-size: 30px;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: 1px;
	transition: color 0.2s ease;
}

.online-apply__hotline-number:hover {
	color: #ff8a1f;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1199px) {
	.online-apply__title {
		font-size: 28px;
	}

	.online-apply__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.online-apply__actions {
		flex-direction: row;
		justify-content: center;
	}

	.online-apply__btn {
		width: auto;
		min-width: 200px;
	}
}

@media (max-width: 991px) {
	.online-apply {
		padding: 40px 0 48px;
	}

	.online-apply__header {
		margin-bottom: 28px;
	}

	.online-apply__title {
		font-size: 24px;
	}

	/* 991px 以下字段改为：上面4个输入框分2列，认证需求单独一行占满宽度 */
	.online-apply__fields {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"name     company"
			"contact  product"
			"message  message";
	}

	.online-apply__field input,
	.online-apply__field textarea {
		height: auto;
	}

	.online-apply__field textarea {
		min-height: 90px;
	}

	.online-apply__footer::before {
		margin: 28px 0 22px;
	}

	.online-apply__hotline-label {
		font-size: 16px;
	}

	.online-apply__hotline-number {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.online-apply {
		padding: 32px 0 40px;
	}

	.online-apply__header {
		margin-bottom: 24px;
	}

	.online-apply__title {
		font-size: 20px;
	}

	/* 767px 以下字段改为两列布局：上面4个输入框分2列，认证需求单独一行占满宽度 */
	.online-apply__fields {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"name     company"
			"contact  product"
			"message  message";
		gap: 12px;
	}

	.online-apply__field input,
	.online-apply__field textarea {
		height: auto;
		padding: 12px 42px 12px 14px;
		font-size: 14px;
	}

	.online-apply__field textarea {
		min-height: 100px;
	}

	/* 767px 以下按钮改为两列并排 */
	.online-apply__actions {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 12px;
		justify-content: space-between;
	}

	.online-apply__btn {
		flex: 0 0 calc(50% - 6px);
		width: calc(50% - 6px);
		min-width: 0;
		padding: 14px 16px;
		font-size: 15px;
		white-space: normal;
		box-sizing: border-box;
	}

	.online-apply__footer::before {
		margin: 24px 0 20px;
	}

	.online-apply__hotline {
		flex-wrap: wrap;
		gap: 6px 10px;
	}

	.online-apply__hotline-icon {
		width: 26px;
		height: 26px;
	}

	.online-apply__hotline-label {
		font-size: 15px;
	}

	.online-apply__hotline-number {
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.online-apply__title {
		font-size: 18px;
	}

	/* 480px 以下两列布局更紧凑 */
	.online-apply__fields {
		gap: 10px;
	}

	.online-apply__field input,
	.online-apply__field textarea {
		padding: 10px 38px 10px 12px;
		font-size: 13px;
	}

	.online-apply__field-icon {
		right: 12px;
		width: 18px;
		height: 18px;
	}

	.online-apply__field-icon--top {
		top: 14px;
	}

	.online-apply__actions {
		gap: 10px;
	}

	.online-apply__btn {
		flex: 0 0 calc(50% - 5px);
		width: calc(50% - 5px);
		padding: 12px 10px;
		font-size: 14px;
	}

	.online-apply__hotline-number {
		font-size: 20px;
	}
}
