/**
 * NDC Contact Us - 2-column form layout
 * Form on left, Grand Strand image placeholder on right.
 */

.ndc-contact-form {
	margin: 2rem 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ndc-contact-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.ndc-contact-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.ndc-contact-form__col--form {
	min-width: 0;
}

.ndc-contact-form__message {
	padding: 1rem 1.25rem;
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
}

.ndc-contact-form__message--success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.ndc-contact-form__message--error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.ndc-contact-form__message ul {
	margin: 0;
	padding-left: 1.25rem;
}

.ndc-contact-form__form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.375rem;
	color: #1e3a5f;
}

.ndc-contact-form__form input,
.ndc-contact-form__form textarea {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-family: inherit;
}

.ndc-contact-form__form input:focus,
.ndc-contact-form__form textarea:focus {
	outline: none;
	border-color: #ea580c;
	box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

.ndc-contact-form__form textarea {
	resize: vertical;
	min-height: 120px;
}

.ndc-contact-form__row {
	margin-bottom: 1.25rem;
}

.ndc-contact-form__submit {
	margin-top: 1.5rem;
}

.ndc-contact-form__submit .ndc-btn,
.ndc-contact-form__submit button {
	padding: 0.75rem 2rem;
	cursor: pointer;
	border: none;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	background: #ea580c;
	color: #fff;
}

.ndc-contact-form__submit .ndc-btn:hover,
.ndc-contact-form__submit button:hover {
	background: #c2410c;
}

/* Honeypot - hidden from humans, bots fill it */
.ndc-form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	margin: 0;
	padding: 0;
}

/* Right column - Grand Strand image */
.ndc-contact-form__col--image {
	min-width: 0;
}

.ndc-contact-form__img {
	width: 70%;
	height: auto;
	display: block;
	border-radius: 0.5rem;
	object-fit: cover;
	min-height: 300px;
	margin: 0 auto;
}

/* Side-by-side: image matches form height */
@media (min-width: 768px) {
	.ndc-contact-form__col--image {
		display: flex;
		min-height: 0;
	}

	.ndc-contact-form__img {
		width: 70%;
		height: 100%;
		min-height: 0;
		object-fit: cover;
		margin: 0 auto;
	}
}

.ndc-contact-form__placeholder {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
	border-radius: 0.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 2rem;
	text-align: center;
	color: #1e3a5f;
}

.ndc-contact-form__placeholder-text {
	font-size: 1.125rem;
	font-weight: 600;
}

.ndc-contact-form__placeholder-hint {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
}

.ndc-contact-form__placeholder-hint code {
	background: rgba(255, 255, 255, 0.8);
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	font-size: 0.8125rem;
}
