/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/*========================== 
 Ticket Booking popup Form Style 
==========================*/

.flight-booking-form .flight-info-sec {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px !important;
    background-color: #ffee6f;
    color: var(--e-global-color-primary) !important;
    text-transform: uppercase !important;
}

.flight-booking-form .flight-date {
    font-size: 26px;
    font-weight: 900;
}

.flight-booking-form .flight-time,
.flight-booking-form .flight-location {
    display: flex;
    justify-content: center;
    align-items: center !important;
    gap: 3px !important;
    font-weight: 700;
}

.flight-booking-form .jet-form-builder-repeater__row .passenger-title {
    margin: 0;
}

.flight-booking-form .jet-form-builder-repeater__row .passenger-title {
    text-transform: uppercase !important;
    max-width: 100% !important;
    font-size: 14px !important;
    color: var(--e-global-color-secondary) !important;
}

.flight-booking-form .passenger-details-field {
    gap: 15px !important;
    row-gap: 10px !important;
}

.flight-booking-form .passenger-details-field .jet-form-builder-row {
    width: calc(50% - (15px / 2));
}

.flight-booking-form .passenger-details-field .jet-form-builder-row.field-type-textarea-field {
    width: 100% !important;
}

.flight-booking-form .jet-form-builder-row {
    margin: 0 !important;
}

.flight-booking-form .jet-form-builder__required {
    font-size: 18px !important;
}

.flight-booking-form .passenger-details-field .jet-form-builder-row,
.flight-booking-form .jet-form-builder__conditional {
    width: calc(50% - (15px / 2));
}

.flight-booking-form .jet-form-builder__conditional .jet-form-builder-row {
    width: 100% !important;
}

.wp-container-core-group-is-layout-0e82c502 .field-type-date-field,
.flight-booking-form [data-update-field-name="discount_amount"] {
    display: none;
}


.flight-booking-form .flight-info-sec-b-2 .jet-form-builder-row {
    flex-direction: row !important;
}

.flight-booking-form .flight-info-sec-b-2 {
    display: grid;
    padding: 15px;
    background: transparent !important;
    border: solid 1px var(--e-global-color-secondary) !important;
    gap: 15px !important;
    row-gap: 10px !important;

    /* Default: 1 column (for 1 item) */
    grid-template-columns: 1fr;
}

/* If there are exactly 2 items */
.flight-booking-form .flight-info-sec-b-2:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}

/* If there are exactly 3 items */
.flight-booking-form .flight-info-sec-b-2:has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr 1fr 1fr;
}

/* If there are 4 or more items (returns to 2x2 structure) */
.flight-booking-form .flight-info-sec-b-2:has(> :nth-child(4)) {
    grid-template-columns: 1fr 1fr;
}

.flight-booking-form .flight-info-sec-b-2 .jet-form-builder-row.wrapper-is-empty {
    display: none !important;
}

.flight-booking-form .flight-type {
    gap: 12px;
}

.flight-booking-form .flight-type {
    font-weight: 700;
}

/*Style For tablet*/
@media (max-width: 1024px) {

    .flight-booking-form .flight-info-sec,
    .flight-booking-form .flight-info-sec-b-2 {
        border-radius: 20px !important;
        padding: 20px !important;
    }

    .flight-booking-form .flight-info-sec-b-2 {
        grid-template-columns: 1fr !important;
    }
}

/*Style For Mobile*/
@media (max-width: 767px) {

    .flight-booking-form .flight-info-sec,
    .flight-booking-form .flight-info-sec-b-2 {
        grid-template-columns: 1fr !important;
        border-radius: 20px !important;
        padding: 20px !important;
    }

    .flight-booking-form .flight-date {
        text-align: center !important;
        justify-content: center;
    }

    .flight-booking-form .passenger-details-field .jet-form-builder-row,
    .flight-booking-form .jet-form-builder__conditional {
        width: 100% !important;
    }

    .flight-booking-form .flight-type {
        justify-content: center;
        text-align: center;
    }
}

/* Voucher/Coupon Invoice Button Style */
.ct-btn-invoice {
    border: 1px solid #9DCB60;
    color: #7BB242;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.2s ease;
}

.ct-btn-invoice:hover {
    background: #7BB242;
    color: #fff;
    border-color: #7BB242;
    text-decoration: none;
}

/* =========================================
   Gift Voucher Checkout Styles
   ========================================= */

#wind_gift_options,
#wind_gift_virtual_fields,
#wind_gift_physical_fields {
    display: none;
    /* Hidden by default */
    margin-top: 15px;
}

.wind-gift-toggle-group {
    margin-bottom: 15px;
}

.wind-gift-label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Hide 'Optional' text */
#wind_gift_section .optional {
    display: none !important;
}

/* Fix Standard Radio Button Alignment */
#wind_gift_section .form-row .woocommerce-input-wrapper {
    display: flex;
    gap: 8px;
}

#wind_gift_section .form-row label.radio {
    display: flex !important;
    flex-direction: row !important;
    /* Force row */
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
    width: auto !important;
}

#wind_gift_section .form-row label.radio input[type="radio"] {
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    position: static !important;
    display: inline-block !important;
}

/* Template Selector Grid */
.wind-template-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wind-template-option {
    display: flex !important;
    flex-direction: column !important;
    /* Image top, text bottom */
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    width: 30%;
    flex-grow: 1;
    transition: all 0.2s;
    background: #fff;
    min-width: 140px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.wind-template-option:hover {
    border-color: #ddd;
    transform: translateY(-2px);
}

.wind-template-option.selected {
    border-color: #7BB242;
    background-color: #f6fff0;
    box-shadow: 0 4px 8px rgba(123, 178, 66, 0.2);
}

.wind-template-option img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
    object-fit: cover;
}

/* STRICTLY Hide Radio in Template Selector */
.wind-template-option input[type="radio"] {
    display: none !important;
    opacity: 0 !important;
    position: absolute;
    width: 0;
    height: 0;
}

.wind-template-option .template-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
    margin-top: 5px;
}

.wind-template-option.selected .template-label {
    color: #7BB242;
    font-weight: 700;
}