/* AmaraThai Booking Form — Astra-compatible styles */

.amb-booking-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 24px;
	font-family: inherit;
}

.amb-form-title {
	text-align: center;
	font-size: clamp(20px, 4vw, 28px);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ast-global-color-3, #2c1f14);
	margin-bottom: 32px;
}

/* Notice */
.amb-notice {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.5;
}
.amb-notice--success {
	background: #f0faf3;
	border: 1px solid #27ae60;
	color: #1a5e30;
}
.amb-notice--error {
	background: #fdf0f0;
	border: 1px solid #c0392b;
	color: #7b1c1c;
}

/* Grid */
.amb-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}

.amb-field { display: flex; flex-direction: column; }
.amb-field--half { grid-column: span 1; }
.amb-field--full  { grid-column: span 2; }

/* Labels */
.amb-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ast-global-color-3, #2c1f14);
	margin-bottom: 6px;
}
.amb-req { color: var(--ast-global-color-0, #c4835a); }

/* Inputs */
.amb-input,
.amb-select,
.amb-textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d8c8b0;
	border-radius: 3px;
	background: #fff;
	color: #3d2b1f;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}
.amb-input:focus,
.amb-select:focus,
.amb-textarea:focus {
	outline: none;
	border-color: var(--ast-global-color-0, #c4835a);
	box-shadow: 0 0 0 3px rgba(196, 131, 90, 0.15);
}
.amb-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a6e58' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}
.amb-textarea { resize: vertical; min-height: 88px; }

/* Service info preview */
.amb-service-info {
	background: #f9f5ef;
	border: 1px solid #e8dece;
	border-radius: 4px;
	padding: 14px 16px;
}
.amb-service-info__inner { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.amb-service-info__name {
	font-weight: 700;
	font-size: 14px;
	color: var(--ast-global-color-0, #c4835a);
}
.amb-service-info__meta {
	font-size: 12px;
	color: #8a6e58;
}
.amb-service-info__desc {
	width: 100%;
	margin: 4px 0 0;
	font-size: 13px;
	color: #3d2b1f;
}

/* Honeypot */
.amb-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Footer */
.amb-form-footer {
	margin-top: 28px;
	text-align: center;
}

/* Submit button */
.amb-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 40px;
	background: var(--ast-global-color-0, #c4835a);
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}
.amb-submit-btn:hover:not(:disabled) {
	background: var(--ast-global-color-3, #2c1f14);
	transform: translateY(-1px);
}
.amb-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

@keyframes amb-spin {
	to { transform: rotate(360deg); }
}
.amb-spin { animation: amb-spin 0.8s linear infinite; }

.amb-privacy-note {
	margin-top: 14px;
	font-size: 11px;
	color: #8a6e58;
	letter-spacing: 0.04em;
}

/* Success state */
.amb-booking-wrap--success .amb-form {
	display: none;
}

/* Responsive */
@media (max-width: 600px) {
	.amb-form-grid {
		grid-template-columns: 1fr;
	}
	.amb-field--half,
	.amb-field--full {
		grid-column: span 1;
	}
	.amb-submit-btn {
		width: 100%;
	}
}
