/* Hotel Golden Palace Forms — public-facing form styling */

.hgp-form-wrap {
	--hgp-accent: #b8860b;
	max-width: 760px;
	font-family: inherit;
	box-sizing: border-box;
}

.hgp-form-wrap * {
	box-sizing: border-box;
}

.hgp-form-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 14px;
}

.hgp-form-message.hgp-success {
	background: #eef8ee;
	border: 1px solid #bfe6bf;
	color: #245c24;
}

.hgp-form-message.hgp-error {
	background: #fdecec;
	border: 1px solid #f3b8b8;
	color: #7a2020;
}

.hgp-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hgp-form-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}

@media (max-width: 560px) {
	.hgp-form-fields {
		grid-template-columns: 1fr;
	}
	.hgp-field.hgp-col-half {
		grid-column: 1 / -1 !important;
	}
}

.hgp-field {
	grid-column: span 1;
	display: flex;
	flex-direction: column;
}

.hgp-col-full {
	grid-column: 1 / -1;
}

.hgp-col-half {
	grid-column: span 1;
}

.hgp-field label {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #262220;
}

.hgp-required {
	color: #b8860b;
}

.hgp-field input[type="text"],
.hgp-field input[type="email"],
.hgp-field input[type="tel"],
.hgp-field select,
.hgp-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d8d3c8;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hgp-field input[type="file"] {
	padding: 8px 0;
}

.hgp-field input:focus,
.hgp-field select:focus,
.hgp-field textarea:focus {
	outline: none;
	border-color: var(--hgp-accent);
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.hgp-field textarea {
	resize: vertical;
	min-height: 110px;
}

.hgp-choices {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hgp-choice {
	font-weight: 400 !important;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.hgp-choice input {
	width: auto;
	margin: 0;
}

.hgp-help-text {
	font-size: 12px;
	color: #837a6a;
	margin: 6px 0 0;
}

.hgp-file-hint {
	font-size: 11px;
	color: #9a9184;
	margin: 6px 0 0;
}

.hgp-error-text {
	font-size: 12px;
	color: #b3302f;
	margin: 6px 0 0;
	font-weight: 600;
}

.hgp-field-error input,
.hgp-field-error select,
.hgp-field-error textarea {
	border-color: #b3302f;
}

.hgp-field-heading {
	padding-top: 6px;
}

.hgp-heading {
	margin: 0 0 4px;
	font-size: 19px;
	color: #1d1a14;
	border-bottom: 2px solid var(--hgp-accent);
	padding-bottom: 8px;
}

.hgp-heading-desc {
	font-size: 13px;
	color: #7a7263;
	margin: 0;
}

.hgp-form-submit-row {
	margin-top: 24px;
}

.hgp-submit-btn {
	background: var(--hgp-accent);
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.hgp-submit-btn:hover {
	opacity: 0.92;
}

.hgp-submit-btn:active {
	transform: translateY(1px);
}

.hgp-submit-btn:disabled {
	opacity: 0.7;
	cursor: default;
}

.hgp-btn-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hgp-spin 0.7s linear infinite;
}

.hgp-submit-btn.hgp-loading .hgp-btn-spinner {
	display: inline-block;
}

@keyframes hgp-spin {
	to {
		transform: rotate(360deg);
	}
}
