:root {
    --booking-white-1: #ffffff;
    --booking-white-2: #f2f2f2;

    /* @link https://www.colorhexa.com/444242 */
    --booking-dark-brown-1: #6b6868;
    --booking-dark-brown-2: #5e5b5b;
    --booking-dark-brown-3: #514f4f;
    --booking-dark-brown-4: #444242;
    --booking-dark-brown-5: #373535;
    --booking-dark-brown-6: #2a2929;
    --booking-dark-brown-7: #1d1c1c;
}

/*
 * GENERAL
 */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #6c7171;
}

.table {
    color: #6c7171;
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

.filter-option {
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-menu {
    padding: 0;
}

.input-group-text {
    border-top-right-radius: .25rem !important;
    border-bottom-right-radius: .25rem !important;
}

/**
 *
 *
 */
.accordion-header-label {
    background-color: var(--booking-dark-brown-6);
    color: var(--booking-white-1);
}
.accordion-header-label:hover {
    background-color: var(--booking-dark-brown-7);
    color: var(--booking-white-1);
}

/**
 * Submit button to move to
 * the next wizard's step.
 *
 * @author Rodrigo Caetano <rodrigo.caetano@magicbrain.pt>
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 1.0.0 | 2025-01-06 | Rodrigo Caetano | First time this was introduced.
 * @since 1.0.0 | 2025-04-09 | Salustiano Silva | Improved the button style and effects.
 */
.next-page-btn {
    background-color: #444242;
    border-color: #444242;
    color: white;
}

.next-page-btn:hover {
    background-color: white;
    border-color: #444242;
    color: #444242 !important;
}

.next-page-btn .fa-arrow-right:before {
    vertical-align: middle;
}

.form-control {
    height: 3rem;
}

.dropdown-menu a {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.btn-primary {
    background-color: #5CA6BD;
    border: 0;
}

.btn-primary-darkgray {
    background-color: #444242;
}

.btn-primary:hover {
    background-color: #76962A;
    border: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.btn-lg {
    font-size: 85%;
    padding: 12px 20px;
}

.prevent-select {
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

.card-header {
    transition: background-color 0.5s ease;
}

.kalam-light {
    font-family: "Kalam", serif;
    font-weight: 300;
    font-style: normal;
}

.kalam-regular {
    font-family: "Kalam", serif;
    font-weight: 400;
    font-style: normal;
}

.kalam-bold {
    font-family: "Kalam", serif;
    font-weight: 700;
    font-style: normal;
}

.kalam-bold-italic {
    font-family: "Kalam", serif;
    font-weight: 700;
    font-style: italic;
}

.barlow-light {
    font-family: "Barlow", serif;
    font-weight: 300;
    font-style: normal;
}

.barlow-regular {
    font-family: "Barlow", serif;
    font-weight: 400;
    font-style: normal;
}

.barlow-bold {
    font-family: "Barlow", serif;
    font-weight: bolder;
    font-style: normal;
}

.barlow-light-italic {
    font-family: "Barlow", serif;
    font-weight: 300;
    font-style: italic;
}

.barlow-regular-italic {
    font-family: "Barlow", serif;
    font-weight: 400;
    font-style: italic;
}

/*
 * HOMEPAGE
 */
#booking-wizard-splash-section {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#booking-wizard-splash-section form {
    background-color: rgba(255, 255, 255, 0.6)
}

#booking-wizard-splash-section form label {
    font-weight: bold;
    font-size: 14px;
    color: #424040;
}

#booking-wizard-splash-section form .form-group {
    margin-bottom: 0;
}

#booking-wizard-splash-section form .init-booking-btn {
    background-color: #444242;
    border: 0;
}

#booking-wizard-splash-section form .init-booking-btn:hover {
    background-color: #76962A;
    border: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Promo texts */

#booking-wizard-splash-section h1[data-tpl="company-name"],
#booking-wizard-splash-section h2[data-tpl="app-name"],
#booking-wizard-splash-section h3[data-tpl="company-activity"] {
    text-align: center;
    color: var(--white);
}


/* Company Name */

#booking-wizard-splash-section h1[data-tpl="company-name"] {
    letter-spacing: 0.4rem;
    font-size: 14px;
}

/* Application Name */

#booking-wizard-splash-section h2[data-tpl="app-name"] {
    font-size: 2.6rem;
}
@media (min-width: 768px) {
    #booking-wizard-splash-section h2[data-tpl="app-name"] {
        font-size: 4rem;
    }
}
@media (min-width: 992px) {
    #booking-wizard-splash-section h2[data-tpl="app-name"] {
        font-size: 6rem;
    }
}

/* Company Activity */

#booking-wizard-splash-section h3[data-tpl="company-activity"] {
    font-size: 2rem;
    font-weight: 500;
    text-shadow: rgba(0, 0, 0, 0.298039) 0px 5px 0px;
}



#booking-wizard-splash-section form [name="homepage-formulary-pick-up-date"] {
    border-right: none;
}





/*
 * BOOKING WIZARD - TRANSFER DETAIL
 */



.booking-wizard-step .transfer-row-header,
.booking-wizard-step .transfer-row-body>div {
    padding: 1.25rem;
    border-radius: calc(.25rem - 1px);
}

.booking-wizard-step .transfer-row-header.active-accordion {
    background-color: #5CA6BD;
    cursor: pointer;
}

.booking-wizard-step .transfer-row-header {
    background-color: #4a6660;
    cursor: pointer;
}

@media (min-width: 992px) {
    .booking-wizard-step .transfer-row-header {
        padding-left: 0;
    }
}

.booking-wizard-step .transfer-row-body>div {
    border: 1px solid rgba(0, 0, 0, .125);
    margin-top: 0.5rem;
}

.transfer-action--trash {
    cursor: pointer;
    color: var(--white);
    background: transparent;
}

.transfer-action--trash:hover,
.transfer-action--trash:active {
    color: var(--danger);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}


/**
 * Transfer row cost
 * 
 * Formats the transfer's cost display based on the current row status.
 * 
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 1.0.0 | 2025-04-08 | Salustiano Silva | First time this was introduced.
 */
.transfer-row-cost {
    position: relative;
    background-color: var(--booking-dark-brown-6);
    color: var(--booking-white-1);
}

.transfer-row-cost:hover {
    background-color: var(--booking-dark-brown-7);
    color: var(--booking-white-1);
}

.transfer-row-cost i[data-tpl="info-icon"] {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: none;
}

.transfer-row-cost.highlighted {
    background-color: var(--orange);
}
.transfer-row-cost.highlighted i[data-tpl="info-icon"] {
    display: inline-block;
}

/**
 * Transfer row chevron
 * 
 * Formats the row collapsible toggler icon based on the current row status.
 * 
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 1.0.0 | 2025-04-08 | Salustiano Silva | First time this was introduced.
 */
.transfer-action--chevron {
    background-color: var(--booking-dark-brown-6);
    color: var(--booking-white-1);
    transition: transform 0.5s ease;
}

.transfer-action--chevron:hover {
    background-color: var(--booking-dark-brown-7);
    color: var(--booking-white-1);
}

.transfer-action--chevron.rotated {
    transform: rotate(180deg);
}

.active-accordion .transfer-action--chevron {
    background-color: var(--booking-white-1);
    color: var(--booking-dark-brown-6);
}

.active-accordion .transfer-action--chevron:hover {
    background-color: var(--booking-white-2);
    color: var(--booking-dark-brown-7);
}


#booking-wizard-section select {
    width: 100%;
}

/**
 * Transfer Row: Header section #2
 *
 * This section holds the transfer pick up location and accommodation,
 * as well as the transfer drop off location and accommodation.

 * It is displayed as the header 2rd line on small width devices and 
 * as the header right side on larger screen.
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 1.0.0 | 2025-07-22 | Salustiano Silva | Setting the correct styles to this section and inner elements as per the latest specification.
 */
div[data-tpl="transfer-row-header-2"] {
    width: 100%;
}
@media (min-width: 992px) {
    div[data-tpl="transfer-row-header-2"] {
        width: 280px;
    }
}

/**
 * Transfer Row: Header section #3
 *
 * This section holds the transfer pick up date picker and luggage amount inputs.
 * It is displayed as the header 3rd line on small width devices and as the header right side on larger screen.
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 1.0.0 | 2025-07-17 | Salustiano Silva | Setting the correct styles to this section and inner elements as per the latest specification.
 */
div[data-tpl="transfer-row-header-3"] {
    width: 100%;
}
@media (min-width: 992px) {
    div[data-tpl="transfer-row-header-3"] {
        width: 450px;
    }
}

/**
 * Date picker
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 1.0.0 | 2025-07-08 | Salustiano Silva | Clearing some paddings to make room for the date on very small width screens.
 * @since 1.0.0 | 2025-07-17 | Salustiano Silva | Setting a fixed width to better control spacing of surrounding elements.
 */
div[data-tpl="transfer-row-header-3"] [name="transfer-pick-up-date[]"] {
    border-right: none;
    padding-right: 0;
}
div[data-tpl="transfer-row-header-3"] [name="transfer-pick-up-date[]"] + .input-group-append > .input-group-text {
    padding-left: 0;
}

/**
 * Luggage amount
 * 
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 1.0.0 | 2025-07-17 | Salustiano Silva | Setting a fixed width to better control spacing of surrounding elements.
 */
.transfer-row-header-3 [name="transfer-luggage-amount[]"] {
    max-width: 50%;
}

#booking-wizard-transfer-detail-section .location-accommodation-select-wrapper .dropdown {
    width: 100%;
}

/**
 * Button: Blue to green
 *
 * Styles for the button that starts with a blue background and changes to green on focus or hover.
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 1.0.0 | 2025-05-05 | Salustiano Silva | First time this was introduced.
 * @since 1.0.0 | 2025-07-17 | Salustiano Silva | Refactored existing styles to use a single class for all affected buttons.
 */
.btn-blue-to-green {
    background-color: #5CA6BD;
    border-color: #5CA6BD;
    color: #fff;
}

.btn-blue-to-green:hover,
.btn-blue-to-green:focus {
    background-color: #76962A;
    border-color: #76962A;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.btn-blue-to-green .fa-arrow-left:before {
    vertical-align: middle;
}

#booking-wizard-transfer-detail-section .transfer-row-header.active-accordion {
    background-color: #5CA6BD;
}

/*
 * BOOKING WIZARD - CUSTOMER DETAIL
 */
#booking-wizard-customer-detail-section .dropdown {
    width: 100%;
}

#booking-wizard-customer-detail-section input:focus,
#booking-wizard-customer-detail-section select:focus {
    border-color: #2d3434;
    outline: none;
    box-shadow: none;
}

/**
 * Transfer Row: Luggages pieces
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-04-24 | Salustiano Silva | First time this was introduced.
 */
.transfer-action--luggage::-webkit-inner-spin-button,
.transfer-action--luggage::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.transfer-action--luggage {
    -moz-appearance: textfield; /* Firefox */
}

/**
 * Loader
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-04-09 | Salustiano Silva | First time this was introduced.
 */
.loader-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    background-color: rgba(255,255,255,1);
    display: none;
}
.loader {
    width: 40px;
    height: 40px;
    border: 2px solid #FFF;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    background: #4a6660;
    width: 6px;
    height: 6px;
    transform: translate(150%, 150%);
    border-radius: 50%;
}

.loader::before {
    left: auto;
    top: auto;
    right: 0;
    bottom: 0;
    transform: translate(-150%, -150%);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/**
 * Tooltips
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-04-14 | Salustiano Silva | First time this was introduced.
 */
.tooltip .tooltip-inner {
    text-align: left;
    min-width: 220px;
    max-width: 100%;
}



/**
 * Validation
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-07-09 | Salustiano Silva | First time this was introduced.
 */
.form-control.is-invalid + .input-group-append > .input-group-text, 
.was-validated .form-control:invalid  + .input-group-append > .input-group-text {
    border-color: #dc3545;
}

.form-control.is-valid + .input-group-append > .input-group-text, 
.was-validated .form-control:valid + .input-group-append > .input-group-text {
    border-color: #28a745;
}

/**
 * Validation
 *
 * Sets the input feedback message space to a minimum as 
 * to prevent having inputs jumping when messages appear.
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-07-28 | Salustiano Silva | First time this was introduced.
 */
.field-wrapper {
    position: relative;
    padding-bottom: 20px;
}
.field-wrapper .valid-feedback,
.field-wrapper .invalid-feedback {
    position: absolute;
}

/**
 * FAQ's
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-07-22 | Salustiano Silva | First time this was introduced.
 */
#faq-accordion .card-header .fa-chevron-down {
    display: none;
}
#faq-accordion .card-header .fa-chevron-up {
    display: inline-block;
}

#faq-accordion .card-header .collapsed .fa-chevron-up {
    display: none;
}
#faq-accordion .card-header .collapsed .fa-chevron-down {
    display: inline-block;
}

/**
 * Loading Screen
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-07-29 | Salustiano Silva | First time this was introduced.
 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 1.2em;
    display: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/**
 * Date time picker
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-07-30 | Salustiano Silva | First time this was introduced.
 */
.datetimepicker-input {
    caret-color: transparent;
    background-color: #fff;
}

/**
 * Modal backdrop
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-07-30 | Salustiano Silva | First time this was introduced.
 */
.modal-backdrop.show {
    opacity: 0.8;
}

/**
 * Transfer row overlay
 *
 * Element that informs the user that he can't interact 
 * with the transfer row for the written reason.
 *
 * @author Salustiano Silva <salustiano.silva@magicbrain.pt>
 * @since 2025-08-06 | Salustiano Silva | First time this was introduced.
 */
.transfer-row {
    position: relative;
}
.transfer-row-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    border-radius: calc(.25rem - 1px);
}
.transfer-row[data-status="readonly"] .transfer-row-overlay {
    opacity: 1;
    visibility: visible;
}
.transfer-row-overlay > div > span {
    opacity: 0.7;
}
.transfer-row-overlay > div > i {
    color: #5CA6BD;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
    }
    40% {
    transform: translateY(-10px);
    }
    60% {
    transform: translateY(-5px);
    }
}
.animate-bounce {
    animation: bounce 2s infinite;
}