/**
 * SureForms styling – matches GurmanaiPro footer aesthetic.
 *
 * Transparent background, outlined white inputs, elegant uppercase
 * submit button consistent with the site's footer "Get Direction" CTA.
 *
 * @package GurmanaiPro
 */

/* -----------------------------------------------------------------------------
 * Container – full width, no padding, no rounded corners.
 * -------------------------------------------------------------------------- */
.srfm-form-container {
	width: 100% !important;
	max-width: 100% !important;
	background: transparent !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.srfm-form-container .srfm-form {
	width: 100%;
}

/* -----------------------------------------------------------------------------
 * Override SureForms CSS custom properties (they are set inline per form).
 * -------------------------------------------------------------------------- */
.srfm-form-container {
	--srfm-color-scheme-primary:            #ffffff !important;
	--srfm-color-scheme-text-on-primary:    #111c44 !important;
	--srfm-color-scheme-text:               #ffffff !important;

	--srfm-color-input-label:               #ffffff !important;
	--srfm-color-input-description:         rgba( 255, 255, 255, 0.75 ) !important;
	--srfm-color-input-placeholder:         rgba( 255, 255, 255, 0.70 ) !important;
	--srfm-color-input-text:                #ffffff !important;
	--srfm-color-input-prefix:              rgba( 255, 255, 255, 0.75 ) !important;
	--srfm-color-input-background:          transparent !important;
	--srfm-color-input-background-hover:    rgba( 255, 255, 255, 0.04 ) !important;
	--srfm-color-input-background-disabled: rgba( 255, 255, 255, 0.06 ) !important;
	--srfm-color-input-border:              rgba( 255, 255, 255, 0.55 ) !important;
	--srfm-color-input-border-hover:        #ffffff !important;
	--srfm-color-input-border-focus-glow:   rgba( 255, 255, 255, 0.20 ) !important;
	--srfm-color-input-selected:            rgba( 255, 255, 255, 0.10 ) !important;

	--srfm-btn-color-hover:                 rgba( 255, 255, 255, 0.90 ) !important;
	--srfm-btn-color-disabled:              rgba( 255, 255, 255, 0.25 ) !important;

	--srfm-instant-form-padding-top:        0 !important;
	--srfm-instant-form-padding-right:      0 !important;
	--srfm-instant-form-padding-bottom:     0 !important;
	--srfm-instant-form-padding-left:       0 !important;
	--srfm-instant-form-border-radius-top:    0 !important;
	--srfm-instant-form-border-radius-right:  0 !important;
	--srfm-instant-form-border-radius-bottom: 0 !important;
	--srfm-instant-form-border-radius-left:   0 !important;

	--srfm-input-height:              56px !important;
	--srfm-input-field-padding:       14px 18px !important;
	--srfm-input-field-font-size:     15px !important;
	--srfm-input-field-line-height:   24px !important;

	--srfm-row-gap-between-blocks:    18px !important;
	--srfm-col-gap-between-fields:    16px !important;
	--srfm-row-gap-between-fields:    16px !important;

	--srfm-btn-padding:               16px 36px !important;
	--srfm-btn-font-size:             13px !important;
	--srfm-btn-line-height:           20px !important;
}

/* -----------------------------------------------------------------------------
 * Inputs, email, phone, textarea.
 * -------------------------------------------------------------------------- */
.srfm-form-container .srfm-input-common {
	background: transparent !important;
	border-radius: 0 !important;
	letter-spacing: 0.01em;
	box-shadow: none !important;
}

.srfm-form-container .srfm-input-common::placeholder {
	opacity: 1;
}

.srfm-form-container .srfm-input-common:focus,
.srfm-form-container .srfm-input-common:focus-visible {
	outline: none !important;
}

.srfm-form-container .srfm-input-textarea {
	min-height: 140px;
	height: auto;
	resize: vertical;
}

/* -----------------------------------------------------------------------------
 * Phone field (intl-tel-input).
 * -------------------------------------------------------------------------- */
.srfm-form-container .iti {
	width: 100%;
}

.srfm-form-container .iti__selected-country,
.srfm-form-container .iti__selected-dial-code {
	color: #ffffff;
	background: transparent;
}

.srfm-form-container .iti__dropdown-content {
	background: #3a2620;
	color: #ffffff;
	border: 1px solid rgba( 255, 255, 255, 0.15 );
	border-radius: 0;
}

.srfm-form-container .iti__search-input {
	background: transparent;
	color: #ffffff;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.15 );
}

.srfm-form-container .iti__country-name,
.srfm-form-container .iti__dial-code {
	color: #ffffff;
}

.srfm-form-container .iti__country:hover,
.srfm-form-container .iti__country.iti__highlight {
	background: rgba( 255, 255, 255, 0.08 );
}

/* -----------------------------------------------------------------------------
 * Layout – two-column on desktop, stacked on mobile.
 * -------------------------------------------------------------------------- */
.srfm-form-container .srfm-block-width-100 {
	width: 100%;
}

.srfm-form-container .srfm-block-width-50 {
	width: calc( 50% - 8px );
}

/* -----------------------------------------------------------------------------
 * Submit button – outlined, uppercase, matches footer "Get Direction".
 * -------------------------------------------------------------------------- */
.srfm-form-container .srfm-submit-container {
	margin-top: 8px;
}

.srfm-form-container .srfm-submit-button,
.srfm-form-container .srfm-btn-frontend {
	background: transparent !important;
	color: #ffffff !important;
	border: 1px solid rgba( 255, 255, 255, 0.85 ) !important;
	border-radius: 0 !important;
	min-height: 52px;
	padding: 16px 36px !important;
	font-size: 13px !important;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	box-shadow: none !important;
}

.srfm-form-container .srfm-submit-button:hover,
.srfm-form-container .srfm-btn-frontend:hover {
	background: #ffffff !important;
	color: #8a5a4a !important;
	border-color: #ffffff !important;
}

.srfm-form-container .srfm-submit-button:focus,
.srfm-form-container .srfm-btn-frontend:focus {
	outline: none !important;
	box-shadow: 0 0 0 2px rgba( 255, 255, 255, 0.25 ) !important;
}

/* -----------------------------------------------------------------------------
 * Errors.
 * -------------------------------------------------------------------------- */
.srfm-form-container .srfm-error-message,
.srfm-form-container .srfm-head-error,
.srfm-form-container .srfm-footer-error {
	color: #ffffff;
	font-size: 13px;
	letter-spacing: 0.01em;
	opacity: 0.9;
}

.srfm-form-container .srfm-block.srfm-error .srfm-input-common {
	border-color: #ffffff !important;
}

/* -----------------------------------------------------------------------------
 * Responsive.
 * -------------------------------------------------------------------------- */
@media ( max-width: 640px ) {

	.srfm-form-container .srfm-block-width-50 {
		width: 100% !important;
	}

	.srfm-form-container .srfm-submit-button,
	.srfm-form-container .srfm-btn-frontend {
		width: 100%;
	}
}
