/* ==========================================================================
   FUGA — Form liên hệ (nhãn nhỏ, tiêu đề, mạng xã hội, form Contact Form 7 có nhãn nổi)
   ========================================================================== */
.fg-contact { padding-block: clamp(48px, calc(5vw - 16px), 56px); }
.fg-contact--flush { padding-top: 0; }
.fg-contact__inner { display: grid; gap: 48px; max-width: 768px; margin-inline: auto; text-align: center; }
.fg-contact__head { display: grid; gap: 32px; justify-items: center; }
.fg-contact__text { display: flex; flex-direction: column; align-items: center; }
.fg-contact__title { margin-top: 32px; font-size: round(nearest, calc(17.616px + .5824vw), 1px); line-height: 1.1; letter-spacing: .01em; font-weight: 400; text-wrap: balance; }
.fg-badge + .fg-contact__title { margin-top: 32px; }
.fg-contact__text > :first-child { margin-top: 0; }
.fg-contact__desc { max-width: 576px; margin-top: 32px; }
.fg-contact__social.fg-social { gap: 16px; justify-content: center; }
.fg-contact__social.fg-social svg { width: 24px; height: 24px; }

/* Nhãn nhỏ có ô vuông (dùng chung: FAQ, liên hệ) */
.fg-badge { display: inline-flex; align-items: baseline; font-size: 12px; line-height: normal; letter-spacing: .04em; color: rgb(28, 28, 28); }
.fg-badge::before { content: ""; flex: none; width: 8.72px; height: 8.72px; margin-right: 12px; background: currentColor; }

/* Form Contact Form 7 */
.fg-cform { text-align: start; }
.fg-cform .wpcf7-form { display: grid; gap: 20px; }
.fg-cform .hidden-fields-container { display: none; }
.fg-cform__fields { display: grid; gap: 12px; }
.fg-cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg-cform__actions { display: flex; justify-content: center; }
.fg-cform__actions--start { justify-content: flex-start; }
.fg-cform__desc { margin: 0; }
.fg-cform .wpcf7-form-control-wrap { display: block; }
.fg-cform .wpcf7-spinner { position: absolute; margin: 0; opacity: 0; pointer-events: none; }
.fg-cform .wpcf7-form.submitting .wpcf7-spinner { position: static; opacity: 1; margin: 12px 0 0 12px; }

.fg-field { position: relative; display: block; }
.fg-field input, .fg-field textarea {
	display: block; width: 100%; margin: 0; padding: 12px 16px;
	font-size: 14px; line-height: 19.6px; letter-spacing: normal; color: rgb(28, 28, 28);
	background: #fff; border: 1px solid rgba(28, 28, 28, .15); border-radius: 0;
	-webkit-appearance: none; appearance: none; outline: none;
	transition: border-color .2s, padding .15s ease-in-out;
}
.fg-field textarea { min-height: 122px; height: 122px; resize: vertical; }
.fg-field input:focus, .fg-field textarea:focus { border-color: rgba(28, 28, 28, .6); }
.fg-field__label {
	position: absolute; z-index: 1; top: 0; left: 16px; display: flex; align-items: center; height: 46px;
	font-size: 14px; line-height: 19.6px; letter-spacing: .56px; color: rgba(28, 28, 28, .7);
	transform-origin: left top; pointer-events: none; transition: transform .15s ease-in-out;
}
.fg-field--area .fg-field__label { align-items: flex-start; padding-top: 13px; height: auto; }
.fg-field:has(:focus) input, .fg-field:has(:focus) textarea,
.fg-field:has(input:not(:placeholder-shown)) input, .fg-field:has(textarea:not(:placeholder-shown)) textarea { padding-block: 19.2px 4.8px; }
.fg-field:has(:focus) .fg-field__label, .fg-field:has(input:not(:placeholder-shown)) .fg-field__label,
.fg-field:has(textarea:not(:placeholder-shown)) .fg-field__label { transform: translateY(-4.8px) scale(.65); }
.fg-field--area:has(:focus) .fg-field__label, .fg-field--area:has(textarea:not(:placeholder-shown)) .fg-field__label { transform: translateY(-6px) scale(.65); }
.fg-field .wpcf7-not-valid { border-color: #d72c0d; }
.fg-cform .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: #d72c0d; text-align: start; }

.fg-cform input[type="submit"], .fg-cform__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin: 0; padding: 13px 40px;
	font: inherit; font-size: 14px; line-height: normal; letter-spacing: normal; font-weight: 400;
	color: #fff; background: rgb(28, 28, 28); border: 1px solid transparent; border-radius: 0; cursor: pointer;
	-webkit-appearance: none; appearance: none; transition: opacity .2s;
}
.fg-cform input[type="submit"]:hover { opacity: .85; }
.fg-cform input[type="submit"]:disabled { opacity: .5; cursor: default; }

.fg-cform .wpcf7-response-output { margin: 0 !important; padding: 10px 14px !important; font-size: 14px; line-height: 1.4; border: 1px solid rgba(28, 28, 28, .3) !important; text-align: start; }
.fg-cform .wpcf7-form.sent .wpcf7-response-output { border-color: #2e7d32 !important; color: #2e7d32; }
.fg-cform .wpcf7-form.invalid .wpcf7-response-output, .fg-cform .wpcf7-form.failed .wpcf7-response-output,
.fg-cform .wpcf7-form.aborted .wpcf7-response-output, .fg-cform .wpcf7-form.spam .wpcf7-response-output { border-color: #d72c0d !important; color: #d72c0d; }
.fg-cform .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; }

/* Ô chọn (form từ chối chia sẻ dữ liệu) */
.fg-optcheck .wpcf7-list-item { margin: 0; }
.fg-optcheck label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.fg-optcheck input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: rgb(28, 28, 28); }
.fg-cform--optout { max-width: 480px; margin-top: 32px; }
.fg-cform--optout .fg-cform__fields { gap: 16px; }

@media (max-width: 699px) {
	.fg-contact { padding-block: 32px; }
	.fg-contact--flush { padding-top: 0; }
	.fg-contact__inner { gap: 24px; }
	.fg-contact__head { gap: 24px; }
	.fg-contact__title, .fg-badge + .fg-contact__title { margin-top: 28px; }
	.fg-contact__desc { margin-top: 24px; }
	.fg-badge { line-height: 14px; } /* bản gốc 11px — giữ 12px, bù chiều cao dòng */
	.fg-badge::before { width: 8px; height: 8px; }
	.fg-cform .wpcf7-form { gap: 16px; }
	.fg-cform__fields, .fg-cform__row { gap: 8px; }
	.fg-cform__row { grid-template-columns: 1fr; }
	.fg-field input { padding-block: 10.4px; }
	.fg-field textarea { min-height: 119px; height: 119px; padding-block: 10.4px; }
	.fg-field__label { height: 42px; }
	.fg-field--area .fg-field__label { padding-top: 11px; }
	.fg-cform input[type="submit"], .fg-cform__btn { min-height: 42px; padding: 11px 24px; }
	.fg-cform--optout { max-width: none; margin-top: 24px; }
}
