/* ==========================================
   Submit a Review form (Gravity Forms #5)

   Matches the Start Planning form card
   (start-planning-form.css). Scoped to
   #gform_wrapper_5 so it wins over the site-wide
   .gform_wrapper rules in Customizer > Additional
   CSS, which still supply the star rating.
   ========================================== */

body #gform_wrapper_5 {
	--hmf-white: #ffffff;
	--hmf-gray: #dcdcda;
	--hmf-aqua: #89d3cf;
	--hmf-pink: #f1877f;
	--hmf-pink-hover: #f2756f;
	--hmf-blue: #1082a0;
	--hmf-blue-dark: #0c6f8a;
	--hmf-navy: #003d51;
	--hmf-muted: #4d6b77;
	--hmf-line: #cfd6d8;
	--hmf-aqua-tint: #eaf6f5;
	--hmf-error: #b3261e;
	--hmf-error-tint: #fcebea;

	/* Orbital theme variables */
	--gf-color-primary: var(--hmf-blue);
	--gf-color-primary-rgb: 16, 130, 160;
	--gf-color-primary-contrast: #fff;
	--gf-color-primary-darker: var(--hmf-blue-dark);
	--gf-color-in-ctrl-primary: var(--hmf-blue);
	--gf-ctrl-border-color: var(--hmf-line);
	--gf-ctrl-radius: 6px;
	--gf-radius: 6px;
	--gf-ctrl-label-color-primary: var(--hmf-navy);
	--gf-ctrl-label-color-secondary: var(--hmf-navy);
	--gf-ctrl-desc-color: var(--hmf-muted);
	--gf-ctrl-outline-color-focus: rgba(174, 221, 218, 0.7);

	background: var(--hmf-white);
	border: 1px solid #e6eaeb;
	border-radius: 6px;
	box-shadow: 0 10px 30px -14px rgba(0, 61, 81, 0.22);
	padding: clamp(22px, 4.5vw, 44px) !important;
	margin-bottom: 0;
	color: var(--hmf-navy);
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

body #gform_wrapper_5 .gform_fields {
	row-gap: 22px !important;
	column-gap: 22px !important;
}

/* ---------- Form heading: same treatment as the Start Planning step headings ---------- */

body #gform_wrapper_5 .gform_heading {
	margin: 0 0 26px;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--hmf-gray);
}

body #gform_wrapper_5 .gform_title {
	margin: 0;
	color: var(--hmf-navy) !important;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 24px !important;
	font-weight: 800 !important;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

/* Cinzel eyebrow, same treatment as the site's H6 labels */
body #gform_wrapper_5 .gform_title::before {
	content: "Your review";
	display: block;
	margin-bottom: 8px;
	color: var(--hmf-blue);
	font-family: "Cinzel", Georgia, serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.07em;
	line-height: 1.3;
	text-transform: uppercase;
}

body #gform_wrapper_5 .gform_description {
	margin: 8px 0 0;
	color: var(--hmf-muted);
	font-size: 15px;
	line-height: 1.6;
}

body #gform_wrapper_5 .gform_required_legend {
	margin: 14px 0 0;
	color: var(--hmf-muted);
	font-size: 13px;
}

/* ---------- Two-column rows: Destination + Location, Name + Email ---------- */

@media (min-width: 681px) {
	body #gform_wrapper_5 :is(#field_5_13, #field_5_15, #field_5_17, #field_5_3) {
		grid-column: span 6;
	}
}

/* ---------- Labels and descriptions ---------- */

body #gform_wrapper_5 .gfield_label,
body #gform_wrapper_5 legend.gfield_label,
body #gform_wrapper_5 .review-intro > label {
	margin-bottom: 6px !important;
	color: var(--hmf-navy) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.4;
}

body #gform_wrapper_5 .gfield_required,
body #gform_wrapper_5 .gfield_required_asterisk {
	color: var(--hmf-pink) !important;
	font-weight: 700;
}

body #gform_wrapper_5 .gfield_description,
body #gform_wrapper_5 .review-intro-description {
	margin-top: 6px;
	color: var(--hmf-muted) !important;
	font-size: 13.5px !important;
	line-height: 1.5;
	padding-top: 0;
}

/* The intro block opens the "write your review" half of the form */
body #gform_wrapper_5 #field_5_19 {
	padding-top: 22px !important;
	border-top: 1px solid var(--hmf-gray);
}

body #gform_wrapper_5 #field_5_19 .review-intro-description {
	font-size: 15px !important;
	line-height: 1.6;
}

body #gform_wrapper_5 .ginput_complex label,
body #gform_wrapper_5 .gform-field-label--type-sub {
	color: var(--hmf-muted) !important;
	font-size: 12.5px !important;
}

/* Name has only a First input, so it fills its column */
body #gform_wrapper_5 #field_5_17 .ginput_complex {
	margin-inline: 0 !important;
}

body #gform_wrapper_5 #field_5_17 .ginput_complex > span {
	padding-inline: 0 !important;
	flex: 1 1 100%;
	max-width: 100%;
}

/* ---------- Inputs ---------- */

body #gform_wrapper_5 input[type="text"],
body #gform_wrapper_5 input[type="email"],
body #gform_wrapper_5 input[type="tel"],
body #gform_wrapper_5 input[type="number"],
body #gform_wrapper_5 select,
body #gform_wrapper_5 textarea {
	min-height: 48px;
	padding: 11px 14px !important;
	border: 1.5px solid var(--hmf-line) !important;
	border-radius: 6px !important;
	background-color: var(--hmf-white) !important;
	box-shadow: none !important;
	color: var(--hmf-navy) !important;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 16px !important;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body #gform_wrapper_5 textarea {
	min-height: 180px;
}

body #gform_wrapper_5 input::placeholder,
body #gform_wrapper_5 textarea::placeholder {
	color: #8a9ca3;
}

body #gform_wrapper_5 input:hover,
body #gform_wrapper_5 textarea:hover {
	border-color: #a9b8bc !important;
}

body #gform_wrapper_5 input:focus,
body #gform_wrapper_5 textarea:focus {
	outline: none !important;
	border-color: var(--hmf-blue) !important;
	box-shadow: 0 0 0 4px rgba(174, 221, 218, 0.7) !important;
}

/* File upload: bordered row like the other inputs */
body #gform_wrapper_5 #field_5_23 input[type="file"] {
	width: 100%;
	height: auto !important;
	min-height: 48px;
	padding: 8px 10px !important;
	line-height: 1.4 !important;
	border: 1.5px dashed var(--hmf-line);
	border-radius: 6px;
	background: var(--hmf-white);
	color: var(--hmf-navy);
	font-size: 15px;
	cursor: pointer;
}

body #gform_wrapper_5 #field_5_23 input[type="file"]:hover {
	border-color: var(--hmf-aqua);
	background: var(--hmf-aqua-tint);
}

body #gform_wrapper_5 #field_5_23 input[type="file"]::file-selector-button {
	margin-right: 14px;
	padding: 8px 16px;
	border: 0;
	border-radius: 4px;
	background: var(--hmf-blue);
	color: #fff;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.015em;
	text-transform: uppercase;
	cursor: pointer;
}

/* ---------- Recommend Yes/No: buttons, like the Start Planning destination options ---------- */

body #gform_wrapper_5 #field_5_21 .gfield_radio {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 10px !important;
}

body #gform_wrapper_5 #field_5_21 .gchoice {
	position: relative;
	display: block !important;
	margin: 0 !important;
}

body #gform_wrapper_5 #field_5_21 .gchoice input {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

body #gform_wrapper_5 #field_5_21 .gchoice label {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	max-width: none !important;
	margin: 0 !important;
	padding: 10px 22px !important;
	border: 1.5px solid var(--hmf-line);
	border-radius: 4px;
	background: var(--hmf-white);
	color: var(--hmf-navy) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

body #gform_wrapper_5 #field_5_21 .gchoice:hover label {
	border-color: var(--hmf-aqua);
	background: var(--hmf-aqua-tint);
}

body #gform_wrapper_5 #field_5_21 .gchoice input:checked + label {
	border-color: var(--hmf-blue);
	background: var(--hmf-blue);
	color: #fff !important;
}

body #gform_wrapper_5 #field_5_21 .gchoice input:focus-visible + label {
	box-shadow: 0 0 0 4px rgba(174, 221, 218, 0.9);
}

/* ---------- Submit: pink, like the header "Start Planning Your Trip" ---------- */

body #gform_wrapper_5 .gform_footer {
	display: flex;
	justify-content: flex-end;
	margin: 34px 0 0 !important;
	padding: 24px 0 0 !important;
	border-top: 1px solid var(--hmf-gray);
}

body #gform_wrapper_5 .gform_footer .button,
body #gform_wrapper_5 input[type="submit"] {
	margin: 0 !important;
	padding: 13px 29px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: var(--hmf-pink) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.015em !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
	cursor: pointer;
	transform: none !important;
	transition: background-color 0.15s ease;
}

body #gform_wrapper_5 .gform_footer .button:hover,
body #gform_wrapper_5 input[type="submit"]:hover {
	background: var(--hmf-pink-hover) !important;
}

body #gform_wrapper_5 .button:focus-visible,
body #gform_wrapper_5 input[type="submit"]:focus-visible {
	outline: 3px solid var(--hmf-aqua) !important;
	outline-offset: 3px;
}

/* ---------- Validation ---------- */

body #gform_wrapper_5 .gfield_error input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
body #gform_wrapper_5 .gfield_error textarea {
	border-color: var(--hmf-error) !important;
	background-color: var(--hmf-error-tint) !important;
}

body #gform_wrapper_5 .gfield_error #field_5_21 .gchoice label,
body #gform_wrapper_5 #field_5_21.gfield_error .gchoice label {
	border-color: var(--hmf-error);
}

body #gform_wrapper_5 .gfield_validation_message,
body #gform_wrapper_5 .validation_message {
	margin-top: 6px;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--hmf-error) !important;
	font-size: 13px !important;
	font-weight: 600;
}

body #gform_wrapper_5 .gform_validation_errors {
	border-color: var(--hmf-error) !important;
	border-radius: 6px !important;
	background: var(--hmf-error-tint) !important;
	box-shadow: none !important;
}

/* ---------- Confirmation ---------- */

body #gform_confirmation_wrapper_5 {
	padding: clamp(22px, 4.5vw, 44px);
	border: 1px solid #e6eaeb;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 30px -14px rgba(0, 61, 81, 0.22);
	color: #003d51;
}

/* ---------- Phones ---------- */

@media (max-width: 680px) {
	body #gform_wrapper_5 .gform_footer .button,
	body #gform_wrapper_5 input[type="submit"] {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	body #gform_wrapper_5 * {
		transition: none !important;
	}
}
