/* Contact Form Styles - Matching hugo-story theme */

/* Variables based on theme's _vars.scss */
/* color5: #46587a (blue) - accent color */
/* invert: bg: #000000, fg: #ffffff, border: rgba(255,255,255,1.0), accent: #837164 */

.contact-form-wrapper {
	width: 100%;
}

/* Form container */
.contact-form {
	margin: 0 0 2rem 0;
}

/* Form groups */
.form-group {
	margin-bottom: 1.75rem;
}

.form-group:last-child {
	margin-bottom: 0;
}

/* Labels */
.contact-form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	color: #ffffff;
}

/* Input fields */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="password"],
.contact-form textarea {
	appearance: none;
	background-color: transparent;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 1.0);
	color: #ffffff;
	display: block;
	outline: 0;
	padding: 0.825rem 1rem;
	width: 100%;
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
	min-height: 150px;
	resize: vertical;
	padding: 0.75rem 1rem;
}

/* Input focus state */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="password"]:focus,
.contact-form textarea:focus {
	border-color: #837164;
	box-shadow: 0 0 0 1px #837164;
}

/* Placeholder text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.75);
	opacity: 1;
}

/* Form actions (buttons) */
.form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.contact-form input[type="submit"],
.contact-form input[type="reset"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 4px;
	border: solid 1px #837164;
	background-color: #837164;
	color: #ffffff !important;
	cursor: pointer;
	display: inline-block;
	font-size: 1rem;
	font-weight: 400;
	height: 3rem;
	line-height: 3rem;
	padding: 0 2rem;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-form input[type="submit"]:hover,
.contact-form input[type="reset"]:hover {
	background-color: #9a8578;
	border-color: #9a8578;
}

.contact-form input[type="submit"]:active,
.contact-form input[type="reset"]:active {
	background-color: #6b5d52;
	border-color: #6b5d52;
}

.contact-form input[type="submit"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.contact-form input[type="reset"] {
	background-color: transparent;
	color: #ffffff !important;
}

.contact-form input[type="reset"]:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Form messages */
.form-message {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 4px;
	font-size: 0.9rem;
}

.form-message.success {
	background-color: rgba(107, 167, 140, 0.2);
	border: 1px solid #6ba78c;
	color: #6ba78c;
}

.form-message.error {
	background-color: rgba(219, 137, 146, 0.2);
	border: 1px solid #db8992;
	color: #db8992;
}

/* Honeypot field - hidden but accessible for screen readers */
.honeypot {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
	height: 1px !important;
	width: 1px !important;
	overflow: hidden !important;
}

/* Responsive adjustments */
@media screen and (max-width: 736px) {
	.form-actions {
		flex-direction: column;
		gap: 0.5rem;
	}

	.contact-form input[type="submit"],
	.contact-form input[type="reset"] {
		width: 100%;
	}
}

/* Split layout for contact section */
#contact .inner .split {
	display: flex;
	flex-direction: row;
	gap: 3rem;
}

#contact .inner .split > .contact-form-section {
	flex: 1 1 60%;
	min-width: 0;
}

#contact .inner .split > .contact-info {
	flex: 1 1 40%;
}

/* Contact info section styling */
.contact-info .contact-method {
	margin-bottom: 2rem;
}

.contact-info .contact-method:last-child {
	margin-bottom: 0;
}

.contact-info h3 {
	color: #ffffff;
	margin-bottom: 0.5rem;
}

.contact-info a {
	color: #837164;
	text-decoration: none;
}

.contact-info a:hover {
	text-decoration: underline;
}

.contact-info span {
	color: rgba(255, 255, 255, 0.85);
}

/* Contact section heading */
#contact .inner h2 {
	color: #ffffff;
	margin-bottom: 2rem;
	text-align: center;
}

/* Mobile responsive - stack vertically */
@media screen and (max-width: 980px) {
	#contact .inner .split {
		flex-direction: column;
		gap: 2rem;
	}

	#contact .inner .split > .contact-form-section,
	#contact .inner .split > .contact-info {
		flex: 1 1 100%;
		width: 100%;
	}
}

@media screen and (max-width: 736px) {
	#contact .inner h2 {
		font-size: 1.5rem;
	}

	#contact .inner .split > .contact-form-section {
		order: 1;
	}

	#contact .inner .split > .contact-info {
		order: 2;
	}
}
