/**
 * Quote Form Widget - Frontend Styles
 */

.leo-quote-form-wrapper {
    width: 100%;
}

.leo-quote-form {
    width: 100%;
}

/* Rows */
.leo-quote-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 40px;
}

.leo-quote-row:last-child {
    margin-bottom: 0;
}

/* Columns */
.leo-quote-col-50 {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.leo-quote-col-33 {
    flex: 0 0 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
}

/* Field wrapper */
.leo-quote-field-wrapper {
    width: 100%;
}

/* Field box */
.leo-quote-field {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Labels */
.leo-quote-label {
    display: block;
    color: #0B0B68;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 19px;
    margin-bottom: 5px;
}

/* Inputs */
.leo-quote-input,
.leo-quote-select {
    width: 100%;
    border: none !important;
    border-width: 0 !important;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    line-height: 19px;
    color: #333333;
    outline: none !important;
    box-shadow: none !important;
}

.leo-quote-input::placeholder {
    color: #929292;
    font-style: italic;
}

.leo-quote-input:focus,
.leo-quote-select:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.leo-quote-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.leo-quote-select option {
    font-style: normal;
}

/* Field box needs relative positioning for icons */
.leo-quote-date-field,
.leo-quote-select-field {
    position: relative;
}

/* Input wrapper for icons */
.leo-quote-input-wrapper {
    display: flex;
    align-items: center;
}

.leo-quote-input-wrapper .leo-quote-input,
.leo-quote-input-wrapper .leo-quote-select {
    flex: 1;
    padding-right: 30px;
}

/* Icons positioned in the white box, centered vertically */
.leo-quote-calendar-icon,
.leo-quote-dropdown-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0B68;
    pointer-events: none;
}

.leo-quote-calendar-icon svg,
.leo-quote-dropdown-icon svg {
    display: block;
}

/* Séjour field values */
.leo-quote-sejour-field .leo-quote-input,
.leo-quote-sejour-field .leo-quote-select {
    color: #E5A92E;
    font-style: normal;
}

/* Counter field */
.leo-quote-counter-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leo-quote-counter-field .leo-quote-label {
    margin-bottom: 0;
}

.leo-quote-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.leo-quote-counter-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #0B0B68;
    border-radius: 50%;
    background: transparent;
    color: #0B0B68;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.leo-quote-counter-btn:hover {
    background-color: #0B0B68;
    color: #FFFFFF;
}

.leo-quote-counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.leo-quote-counter-btn:disabled:hover {
    background: transparent;
    color: #0B0B68;
}

.leo-quote-counter-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #E5A92E;
    min-width: 40px;
    text-align: center;
}

/* Section title */
.leo-quote-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #3E405B;
    margin: 30px 0 20px 0;
    padding: 0;
}

/* Checkbox */
.leo-quote-checkbox-wrapper {
    margin: 30px 0;
}

.leo-quote-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.leo-quote-checkbox-input {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 2px solid #CCCCCC;
    border-radius: 10px;
    background: #FFFFFF;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
}

.leo-quote-checkbox-input:checked {
    background-color: #0B0B68;
    border-color: #0B0B68;
}

.leo-quote-checkbox-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 8px;
    height: 14px;
    border: solid #FFFFFF;
    border-width: 0 3px 3px 0;
}

.leo-quote-checkbox-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 19px;
    color: #3E405B;
    padding-top: 5px;
}

/* Submit button */
.leo-quote-submit-wrapper {
    display: flex;
    justify-content: flex-start;
}

.leo-quote-submit {
    background-color: #E5A92E;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 24px;
    padding: 20px 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leo-quote-submit:hover {
    background-color: #d49a1f;
}

/* Date picker customization */
.leo-quote-datepicker {
    cursor: pointer;
}

/* Hide native date picker icon */
input[type="date"].leo-quote-datepicker::-webkit-calendar-picker-indicator,
.leo-quote-datepicker::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

input[type="date"].leo-quote-datepicker::-webkit-inner-spin-button,
input[type="date"].leo-quote-datepicker::-webkit-clear-button,
.leo-quote-datepicker::-webkit-inner-spin-button,
.leo-quote-datepicker::-webkit-clear-button {
    display: none !important;
    -webkit-appearance: none !important;
}

input[type="date"].leo-quote-datepicker::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

/* Firefox */
input[type="date"].leo-quote-datepicker {
    -moz-appearance: textfield;
}

/* Edge/IE */
input[type="date"].leo-quote-datepicker::-ms-clear,
input[type="date"].leo-quote-datepicker::-ms-reveal {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .leo-quote-col-33 {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .leo-quote-row-3 .leo-quote-field-wrapper:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .leo-quote-row {
        gap: 20px;
    }

    .leo-quote-col-50,
    .leo-quote-col-33 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .leo-quote-counter-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .leo-quote-submit {
        width: 100%;
    }

    .leo-quote-submit-wrapper {
        justify-content: center;
    }
}
