/* =========================================================================
   Contact — form and details

   Both widgets are self-contained, so they can sit in one Elementor container
   side by side or stack anywhere else on the site.
   ========================================================================= */

.rw-contact-form,
.rw-cdetails {
	font-family: var(--rwh-font);
}

.rw-contact-form *,
.rw-cdetails * {
	box-sizing: border-box;
}

/* ---------- form ---------- */

.rw-contact-form__title {
	margin: 0 0 10px;
	color: var(--rwh-navy, #08323f);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.rw-contact-form__intro {
	margin: 0 0 26px;
	max-width: 60ch;
	color: #4a5568;
	font-size: 1rem;
	line-height: 1.65;
}

.rw-field-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 18px;
}

@media (min-width: 620px) {
	.rw-field-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.rw-field {
	margin: 0 0 18px;
}

.rw-field label {
	display: block;
	margin-bottom: 7px;
	color: var(--rwh-navy, #08323f);
	font-size: 0.875rem;
	font-weight: 600;
}

.rw-field__opt {
	color: #8892a4;
	font-weight: 500;
}

.rw-contact-form input[type="text"],
.rw-contact-form input[type="email"],
.rw-contact-form input[type="tel"],
.rw-contact-form select,
.rw-contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfd6e2;
	border-radius: 8px;
	background: #fff;
	color: var(--rwh-text, #1b2333);
	font-family: var(--rwh-font);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rw-contact-form textarea {
	resize: vertical;
	min-height: 140px;
}

.rw-contact-form input:focus,
.rw-contact-form select:focus,
.rw-contact-form textarea:focus {
	outline: 0;
	border-color: var(--rwh-navy, #08323f);
	box-shadow: 0 0 0 3px rgba(20, 39, 92, 0.12);
}

.rw-contact-form .rw-btn {
	margin-top: 4px;
}

.rw-contact-form__small {
	margin: 12px 0 0;
	color: #8892a4;
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* ---------- notices ---------- */

.rw-notice {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-radius: 8px;
	border-left: 3px solid;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.rw-notice--ok {
	border-left-color: #2f9e5f;
	background: #eefaf2;
	color: #1d6b40;
}

.rw-notice--error {
	border-left-color: var(--rwh-red, #b06105);
	background: #fdeff0;
	color: #96131a;
}

/* ---------- details ---------- */

.rw-cdetails--card {
	padding: 30px 28px;
	border-radius: 12px;
	background:
		radial-gradient(120% 140% at 88% 6%, rgba(243, 148, 30, 0.34) 0%, rgba(243, 148, 30, 0) 58%),
		linear-gradient(125deg, #05222c 0%, #08323f 58%, #0e5a73 100%);
	color: rgba(255, 255, 255, 0.86);
}

.rw-cdetails__title {
	margin: 0 0 18px;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.rw-cdetails--card .rw-cdetails__title {
	color: #fff;
}

.rw-cdetails--plain .rw-cdetails__title {
	color: var(--rwh-navy, #08323f);
}

.rw-cdetails__list {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.rw-cdetails__list li {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 11px;
	font-size: 0.9375rem;
}

.rw-cdetails__list svg {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	fill: currentColor;
	opacity: 0.85;
}

.rw-cdetails--plain .rw-cdetails__list svg {
	fill: var(--rwh-red, #b06105);
	opacity: 1;
}

.rw-cdetails a {
	color: inherit;
	text-decoration: none;
}

.rw-cdetails a:hover,
.rw-cdetails a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rw-cdetails--plain a {
	color: var(--rwh-navy, #08323f);
}

.rw-cdetails__hours {
	margin: 0 0 22px;
	font-size: 0.875rem;
	line-height: 1.55;
	opacity: 0.8;
}

/* Measured against the widget's own width, not the viewport. This card is
   usually a narrow sidebar column on a wide screen, so a viewport media query
   would put two addresses side by side in ~110px each and wrap them to bits. */
.rw-cdetails {
	container-type: inline-size;
}

.rw-cdetails__offices {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rw-cdetails--plain .rw-cdetails__offices {
	border-top-color: #e4e8ef;
}

/* Falls back to one column where container queries are unsupported, which is
   the safe direction. */
@container (min-width: 460px) {
	.rw-cdetails__offices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.rw-cdetails__office-name {
	margin: 0 0 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.rw-cdetails--card .rw-cdetails__office-name {
	color: #fff;
}

.rw-cdetails--plain .rw-cdetails__office-name {
	color: rgba(20, 39, 92, 0.6);
}

.rw-cdetails__address {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	font-style: normal;
	line-height: 1.55;
}

.rw-cdetails__office-phone {
	font-size: 0.9375rem;
}

.rw-cdetails__social {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rw-cdetails--plain .rw-cdetails__social {
	border-top-color: #e4e8ef;
}

.rw-cdetails__social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rw-cdetails__social li {
	margin: 0;
	font-size: 0.9375rem;
}

.rw-cdetails__empty {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	opacity: 0.85;
}

.rw-contact-form :focus-visible {
	outline: 3px solid var(--rwh-navy, #08323f);
	outline-offset: 2px;
}

.rw-cdetails--card :focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
