/*
Theme Name: Bookora Child
Author: 
Description: Your description goes here
Version: 1.0
Template: bookora

This is the child theme for Bookora theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/
/* ==========================================================================
   Home: Availability form (#availabilityform) - tablet & mobile layout
   --------------------------------------------------------------------------
   Desktop keeps the single row set in Customizer > Additional CSS (14%).
   Selectors are deliberately more specific than that rule, because the
   Customizer CSS is printed after this file.
   ========================================================================== */

/* Tablet & phone (all orientations): dates 50/50, then 4 numbers, button full width */
@media (max-width: 1024px) {
	#availabilityform {
		padding-inline: 16px; /* keep fields off the screen edges */
	}

	#availabilityform .elementor-form-fields-wrapper > .elementor-field-group.elementor-column {
		flex: 0 0 25%;
		width: 25%;
		max-width: 25%;
	}

	#availabilityform .elementor-form-fields-wrapper > .elementor-field-group.elementor-field-type-date {
		flex-basis: 50%;
		width: 50%;
		max-width: 50%;
	}

	#availabilityform .elementor-form-fields-wrapper > .elementor-field-group.elementor-field-type-submit {
		flex-basis: 100%;
		width: 100%;
		max-width: 100%;
	}

	#availabilityform .elementor-field-group .elementor-field {
		min-width: 0;
		width: 100%;
		font-size: 16px; /* prevents iOS zoom on focus */
	}

	#availabilityform .elementor-field-group > label {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#availabilityform .e-form__buttons .elementor-button {
		width: 100%;
	}
}

/* Tablet landscape (e.g. 1024x768): all six fields on one row, button below */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) and (min-height: 501px) {
	#availabilityform .elementor-form-fields-wrapper > .elementor-field-group.elementor-column {
		flex-basis: 12.5%;
		width: 12.5%;
		max-width: 12.5%;
	}

	#availabilityform .elementor-form-fields-wrapper > .elementor-field-group.elementor-field-type-date {
		flex-basis: 25%;
		width: 25%;
		max-width: 25%;
	}

	#availabilityform .elementor-form-fields-wrapper > .elementor-field-group.elementor-field-type-submit {
		flex-basis: 100%;
		width: 100%;
		max-width: 100%;
	}
}

/* Phone portrait: numbers in a 2x2 grid */
@media (max-width: 767px) and (orientation: portrait) {
	#availabilityform .elementor-form-fields-wrapper > .elementor-field-group.elementor-field-type-number {
		flex-basis: 50%;
		width: 50%;
		max-width: 50%;
	}
}

/* --------------------------------------------------------------------------
   Availability form: typography & controls on tablet and phone
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	#availabilityform .elementor-field-group {
		margin-bottom: 12px;
	}

	#availabilityform .elementor-field-group > label {
		margin-bottom: 4px;
		font-size: 14px;
		line-height: 1.3;
		font-weight: 600;
		letter-spacing: 0.01em;
	}

	#availabilityform .elementor-field-group .elementor-field:not([type="hidden"]) {
		height: 44px;          /* comfortable tap target */
		min-height: 44px;
		padding: 0 12px;
		border: 1px solid rgba(25, 25, 25, 0.14);
		border-radius: 6px;
		line-height: 44px;
	}

	#availabilityform .e-form__buttons .elementor-button {
		min-height: 48px;
		margin-top: 4px;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		border-radius: 6px;
	}
}

/* --------------------------------------------------------------------------
   Availability form: full-width square overlay on tablets & phones
   (all orientations). Targets the container that wraps the form
   (Elementor element 5910df7; the ID is kept by WPML translations).
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	body .elementor .elementor-element.elementor-element-5910df7 {
		--border-radius: 0;
		--border-top-width: 0px;
		--border-right-width: 0px;
		--border-bottom-width: 0px;
		--border-left-width: 0px;
		--overlay-opacity: 0.85;
		--padding-top: 24px;
		--padding-bottom: 12px;
		width: 100%;
		max-width: 100%;
		border-width: 0;
		border-radius: 0;
	}

	body .elementor .elementor-element.elementor-element-5910df7::before {
		border-radius: 0;
		inset: 0;
	}
}
