/*
 * Fluent Forms, styled as the site's Gravity forms were (css/partials/forms.scss,
 * css/partials/_footer.scss, css/modules/departure.scss, css/templates/ebc-trek.css).
 * Plain CSS, loaded after style.css by inc/fluent-forms.php, so the move needs no
 * rebuild of style.css. Fluent's default look is switched off there.
 *
 * Author: Pravash Karki - pravashkarki.com
 */

/* Layout: Gravity's 12-column spans, carried over as gf-span-N classes. */
.frm-fluent-form fieldset {
	display: flex;
	flex-wrap: wrap;
	column-gap: 16px;
}

.frm-fluent-form fieldset > * {
	flex: 0 0 100%;
	max-width: 100%;
}

.frm-fluent-form fieldset > .gf-span-6 {
	flex-basis: calc(50% - 8px);
	max-width: calc(50% - 8px);
}

.frm-fluent-form fieldset > .ff-el-form-hide_label.gf-span-6 {
	align-self: flex-end;
}

.frm-fluent-form fieldset > .gf-span-4 {
	flex-basis: calc(33.333% - 11px);
	max-width: calc(33.333% - 11px);
}

@media (max-width: 640px) {
	.frm-fluent-form fieldset > .gf-span-6,
	.frm-fluent-form fieldset > .gf-span-4 {
		flex-basis: 100%;
		max-width: 100%;
	}
}

/* Fields */
.fluentform .ff-el-group {
	margin-bottom: 20px;
	position: relative;
}

.fluentform .ff-el-input--label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 3px;
}

.fluentform .ff-el-input--label label {
	font-size: 16px;
	color: rgba(24, 27, 26, 0.75);
	font-weight: 400;
	margin: 0;
}

/* body: Fluent prints its own stylesheet after this one, with the same selector. */
/* Required fields: one red "*" after the label. */
body .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after {
	content: " *";
	content: " *" / "";
	margin-left: 2px;
	color: #c02b0a;
}

.fluentform .ff-el-form-hide_label > .ff-el-input--label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.fluentform .ff-el-tooltip {
	display: none;
}

.fluentform .ff-el-form-control {
	display: block;
	border: 1px solid rgba(24, 27, 26, 0.45);
	box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.2);
	padding: 10px 15px;
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	transition: all 0.3s ease;
	font-family: Inter, sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #333;
	background: #fff;
	line-height: 1.4;
	border-radius: 2px;
	margin-top: 0;
}

.fluentform .ff-el-form-control:focus {
	border-color: #333;
	box-shadow: 0 4px 8px rgba(0, 202, 255, 0.44);
	outline: 2px solid transparent;
	color: #333;
}

.fluentform .ff-el-form-control::placeholder {
	color: rgba(0, 0, 0, 0.5);
}

.fluentform textarea.ff-el-form-control {
	height: 167px;
}

.fluentform select.ff-el-form-control {
	background: #fff url(../images/dropdown-arrow-outline.svg) no-repeat calc(100% - 15px) center;
	padding-right: 40px;
}

/* Errors and the success message. body and the EBC page's own wrapper
 * outrank the theme's input borders, so a field in error reads red. */
body .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #e02020;
}

/* !important only to beat css/templates/ebc-trek.css, which sets the EBC
 * form's border with !important. */
.form_section_wrapper .main_form form .ff-el-is-error :is(input, select, textarea) {
	border-color: #e02020 !important;
}

.fluentform .error.text-danger {
	font-size: 13px;
	color: #e02020;
	text-align: left;
	margin-top: 5px;
}

/* The form hides on success; this box takes its place. body outranks
 * Fluent's own box, printed after this stylesheet. */
body .fluentform .ff-message-success {
	font-family: Inter, sans-serif;
	font-weight: 400;
	color: #1f2a2e;
	font-size: 18px;
	line-height: 1.55;
	margin-top: 10px;
	padding: 22px 26px;
	background: #eef6f2;
	border: 0;
	border-left: 4px solid #066547;
	border-radius: 4px;
	box-shadow: none;
}

body .fluentform .ff-message-success p {
	margin: 0 0 8px;
}

body .fluentform .ff-message-success p:last-child {
	margin-bottom: 0;
}

.ff-errors-in-stack {
	color: #e02020;
	font-size: 13px;
}

/* Section headings */
.fluentform .ff-el-section-break {
	margin: 0 0 10px;
}

.fluentform .ff-el-section-break.gutter-top4 {
	margin-top: 40px;
}

.fluentform .ff-el-section-title {
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.173077px;
	color: #181b1a;
	margin: 0;
}

.fluentform .ff-el-section-break hr {
	display: none;
}

/* Radio, checkbox and terms */
.fluentform .ff-el-form-check {
	position: relative;
	margin-bottom: 15px;
}

.fluentform .ff-el-form-check-label,
.fluentform .ff-el-tc label {
	position: relative;
	display: block;
	padding-left: 32px;
	cursor: pointer;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.375;
	color: #181b1a;
}

/* body outranks Fluent's own rule, which sets the button inline and pushed
 * it in by the label's padding. */
body .fluentform .ff-el-form-check-label .ff-el-form-check-input,
body .fluentform .ff-el-tc input[type="checkbox"] {
	position: absolute;
	top: 1px;
	left: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	vertical-align: baseline;
	accent-color: #181b1a;
	cursor: pointer;
}

/* Choices in a row: room between them. */
body .fluentform .ff-el-group.ff_list_inline .ff-el-form-check {
	margin-right: 30px;
}

/* Fluent lays the terms line out as a table row, which drops the label's
 * padding, so the box sat over the first letter. */
body .fluentform .ff-el-tc label.ff_tc_label {
	display: block;
}

body .fluentform .ff-el-tc label.ff_tc_label > span {
	display: contents;
}

body .fluentform .ff-el-tc label.ff_tc_label > div {
	display: block;
}

.fluentform .ff-el-tc label a {
	text-decoration: underline;
	color: #076447;
}

.fluentform .ff-el-tc label a:hover {
	color: #22834e;
}

/* Submit button, as the theme's .button */
.fluentform .ff_submit_btn_wrapper {
	position: relative;
	margin-bottom: 0;
}

.fluentform .ff-btn-submit {
	background-color: #066547;
	padding: 15px 30px;
	font-family: Inter, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.1875;
	color: #fff;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
	border: 0;
	border-radius: 100px;
	display: inline-block;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
	text-transform: capitalize;
	cursor: pointer;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus {
	color: #fff;
	background-color: #22834e;
}

.fluentform .ff-btn-submit:focus-visible {
	outline: 2px solid #333;
	outline-offset: 2px;
}

.fluentform .ff-btn-submit:disabled {
	opacity: 0.7;
	cursor: default;
}

/* Footer newsletter */
.footer__form .fluentform .ff-el-group {
	margin: 0;
}

.footer__form .fluentform .ff-el-form-control {
	height: 45px;
	background-color: #fff;
	padding: 13px 30px;
	border-radius: 45px;
	letter-spacing: 0.457143px;
	line-height: 1.2;
}

.footer__form .fluentform .ff-el-form-control::placeholder {
	color: #203942;
}

.footer__form .fluentform .ff_submit_btn_wrapper {
	margin-top: 16px;
}

body .footer__form .fluentform .ff-message-success {
	color: #fff;
	font-size: 18px;
	background: rgba(255, 255, 255, 0.08);
	border-left-color: #fff;
}

/* On the dark footer the error red is too dark to read; a light red reads. */
.footer__form .fluentform .error.text-danger,
.footer__form .ff-errors-in-stack {
	color: #ffb3b3;
}

.footer__form .fluentform .ff-el-is-error .ff-el-form-control {
	border: 2px solid #ffb3b3;
}

/* Booking form: number of people and price lines */
.booking-form .fluentform .number-of-pax .ff-el-input--content {
	position: relative;
	width: 160px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: #fff;
	border: 1px solid rgba(24, 27, 26, 0.45);
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

.booking-form .fluentform .number-of-pax .button-minus,
.booking-form .fluentform .number-of-pax .button-plus {
	font-weight: 700;
	height: 46px;
	padding: 0;
	width: 46px;
	margin: 0;
	background: #fff;
	color: #000;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.booking-form .fluentform .number-of-pax .button-minus {
	border-right: 1px solid rgba(24, 27, 26, 0.45);
}

.booking-form .fluentform .number-of-pax .button-plus {
	border-left: 1px solid rgba(24, 27, 26, 0.45);
}

.booking-form .fluentform .number-of-pax .button-minus svg {
	width: 16px;
	height: 2px;
}

.booking-form .fluentform .number-of-pax .button-plus svg {
	width: 16px;
	height: 16px;
}

.booking-form .fluentform .number-of-pax .ff-el-form-control {
	width: 64px;
	padding: 9px 10px 8px;
	border-radius: 0;
	box-shadow: none;
	border: none;
	text-align: center;
	-moz-appearance: textfield;
}

.booking-form .fluentform .number-of-pax .ff-el-form-control::-webkit-outer-spin-button,
.booking-form .fluentform .number-of-pax .ff-el-form-control::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fluentform .amount-per-person,
.fluentform .total-amount,
.fluentform .current-amount,
.fluentform .remaining-amount.ff-custom_html {
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(24, 27, 26, 0.45);
}

.fluentform .box-price {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.fluentform .box-price .amount {
	color: #181b1a;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.27;
}

.fluentform .current-amount .box-price,
.fluentform .current-amount .box-price .amount {
	color: #181b1a;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.27;
}

.fluentform .wire-transfer {
	margin: 40px 0;
}

.fluentform .wire-transfer h3 {
	font-family: Inter, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #181b1a;
	margin: 0 0 15px;
}

.booking-form .fluentform .ff-btn-submit {
	width: 100%;
}

/* Trip review form */
.reviews__link-form .fluentform .ff-el-form-control {
	border: 1px solid #00014b;
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.2;
	letter-spacing: 0.5px;
	color: #000;
	padding: 8px 15px;
}

/* EBC trek page, as css/templates/ebc-trek.css styles its Gravity form */
.form_section_wrapper .main_form .ff-el-input--content {
	position: relative;
}

.form_section_wrapper .main_form .ebc_fullname .ff-el-input--content::before,
.form_section_wrapper .main_form .ebc_email .ff-el-input--content::before,
.form_section_wrapper .main_form .ebc_country .ff-el-input--content::before,
.form_section_wrapper .main_form .ebc_message .ff-el-input--content::before,
.form_section_wrapper .main_form .ebc_fullname .ff-el-input--content::after,
.form_section_wrapper .main_form .ebc_email .ff-el-input--content::after,
.form_section_wrapper .main_form .ebc_country .ff-el-input--content::after,
.form_section_wrapper .main_form .ebc_message .ff-el-input--content::after {
	content: "";
	background-repeat: no-repeat;
	background-size: 25px;
	background-position: center;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 50px;
	border-radius: 15px 0 0 15px;
	pointer-events: none;
}

.form_section_wrapper .main_form .ff-el-input--content::before {
	filter: invert(1);
	z-index: 1;
}

.form_section_wrapper .main_form .ff-el-input--content::after {
	background-color: var(--gh-blue);
	z-index: 0;
}

.form_section_wrapper .main_form .ebc_fullname .ff-el-input--content::before {
	background-image: url(https://www.glorioushimalaya.com/wp-content/uploads/2023/08/user.png);
}

.form_section_wrapper .main_form .ebc_email .ff-el-input--content::before {
	background-image: url(https://www.glorioushimalaya.com/wp-content/uploads/2023/08/mail.png);
}

.form_section_wrapper .main_form .ebc_country .ff-el-input--content::before {
	background-image: url(https://www.glorioushimalaya.com/wp-content/uploads/2023/08/earth.png);
}

.form_section_wrapper .main_form .ebc_message .ff-el-input--content::before {
	background-image: url(https://www.glorioushimalaya.com/wp-content/uploads/2023/08/edit.png);
}

.form_section_wrapper .main_form .ff-btn-submit {
	background-color: var(--gh-pink);
	border-radius: 100vw;
	max-width: 150px;
	padding: 0.5rem 1.5rem;
	box-shadow: none;
	transition: 0.3s background-color linear;
}

.form_section_wrapper .main_form .ff-btn-submit:hover {
	background-color: #9c1842;
}
