/* =========================================================================
 * Contact Form & Social Links Widget Styles
 * ========================================================================= */

.child-contact-widget {
	position: relative;
	width: 100%;
	background-color: #222222;
	box-sizing: border-box;
}

.child-contact-widget *,
.child-contact-widget *::before,
.child-contact-widget *::after {
	box-sizing: border-box;
}

/* 容器居中与内边距 */
.ccf-container {
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
	padding: 60px 30px;
}

/* =========================================================================
 * 头部标题与描述
 * ========================================================================= */

.ccf-header {
	text-align: center;
	margin-bottom: 45px;
}

.ccf-title {
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #ffffff;
	margin: 0 0 16px 0;
	line-height: 1.2;
	text-transform: uppercase;
}

.ccf-desc {
	font-size: 15px;
	line-height: 1.6;
	color: #d1d5db;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

/* =========================================================================
 * 主体两栏布局（左侧表单，右侧社媒）
 * ========================================================================= */

.ccf-body {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 45px;
	width: 100%;
}

.ccf-col {
	min-width: 0;
}

/* 左侧表单列 */
.ccf-form-col {
	flex: 1 1 58%;
	width: 58%;
}

.ccf-form {
	width: 100%;
	position: relative;
}

.ccf-form-group {
	margin-bottom: 16px;
	width: 100%;
}

.ccf-input,
.ccf-textarea {
	width: 100%;
	background-color: #ffffff;
	color: #222222;
	border: 1px solid #5d7188;
	border-radius: 2px;
	padding: 12px 16px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	display: block;
}

.ccf-input::placeholder,
.ccf-textarea::placeholder {
	color: #5d7188;
	font-size: 14px;
	opacity: 1;
}

.ccf-input:focus,
.ccf-textarea:focus {
	border-color: #092a56;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.ccf-textarea {
	min-height: 125px;
	resize: vertical;
}

.ccf-form-actions {
	margin-top: 18px;
}

.ccf-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	background-color: #737373;
	color: #ffffff;
	border: none;
	border-radius: 2px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.ccf-submit-btn:hover {
	background-color: #555555;
}

.ccf-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* 按钮加载动画旋转 */
.ccf-btn-spinner svg {
	animation: ccf-spin 1s linear infinite;
	display: block;
}

@keyframes ccf-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* 状态提示信息 */
.ccf-form-alert {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.4;
}

.ccf-form-alert.is-success {
	background-color: rgba(34, 197, 94, 0.15);
	color: #4ade80;
	border: 1px solid rgba(74, 222, 128, 0.3);
}

.ccf-form-alert.is-error {
	background-color: rgba(239, 68, 68, 0.15);
	color: #f87171;
	border: 1px solid rgba(248, 113, 113, 0.3);
}

/* =========================================================================
 * 右侧社媒与联系列表
 * ========================================================================= */

.ccf-social-col {
	flex: 1 1 42%;
	width: 42%;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	padding-left: 45px;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.ccf-social-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.ccf-social-item {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #ffffff;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
	transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
	word-break: break-word;
}

.ccf-social-item:hover {
	color: #9ca3af;
	transform: translateX(3px);
}

.ccf-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.ccf-social-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.ccf-social-text {
	font-weight: 500;
}

/* =========================================================================
 * 移动端适配（核心断点：768px）
 * ========================================================================= */

@media (max-width: 768px) {
	.ccf-container {
		padding: 40px 20px;
	}

	.ccf-header {
		margin-bottom: 32px;
	}

	.ccf-title {
		font-size: clamp(24px, 7vw, 32px);
		margin-bottom: 12px;
	}

	.ccf-desc {
		font-size: 14px;
	}

	/* 两栏切为单栏垂直排列 */
	.ccf-body {
		flex-direction: column !important;
		gap: 36px;
	}

	.ccf-form-col,
	.ccf-social-col {
		width: 100% !important;
		flex: 0 0 100% !important;
	}

	/* 分割线由垂直变为水平 */
	.ccf-social-col {
		border-left: none !important;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		padding-left: 0 !important;
		padding-top: 32px;
	}

	/* 手机端触控优化 */
	.ccf-social-item {
		min-height: 38px;
		padding: 4px 0;
	}

	.ccf-submit-btn {
		width: 100%;
		min-height: 44px;
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.ccf-container {
		padding: 30px 16px;
	}

	.ccf-input,
	.ccf-textarea {
		font-size: 14px;
		padding: 10px 14px;
	}
}
