
/* =========================================================
   FORMULARIO RIAD POLICE
   ========================================================= */

.riad-police {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* =========================================================
   TITULOS DE LOS STEPS
   ========================================================= */

.riad-police .step-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    font-size: 24px;
    font-weight: 700;
    color: #333;

    margin: 0 0 25px 0;
}

.riad-police .step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #f9c349;
    color: #fff;

    font-size: 18px;
    font-weight: 700;

    line-height: 1;
    flex-shrink: 0;
}

/* =========================================================
   LABELS
   ========================================================= */

.riad-police label {
    display: block;

    margin-top: 18px;
    margin-bottom: 6px;

    font-weight: 600;
    color: #333;

    line-height: 1.4;
}

/* Texto dentro de label */
.riad-police label p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* =========================================================
   INPUTS Y SELECTS
   ========================================================= */

.riad-police input[type="text"],
.riad-police input[type="date"],
.riad-police input[type="number"],
.riad-police input[type="file"],
.riad-police select,
.riad-police textarea {

    display: block;

    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fff;

    color: #333;

    font-family: inherit;
    font-size: 16px;

    box-sizing: border-box;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

/* =========================================================
   INPUT FILE
   ========================================================= */

.riad-police input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

/* =========================================================
   FOCUS
   ========================================================= */

.riad-police input:focus,
.riad-police select:focus,
.riad-police textarea:focus {

    outline: none;

    border-color: #f9c349;

    box-shadow:
        0 0 0 3px rgba(249,195,73,.20);
}

/* =========================================================
   CAMPOS VALIDADOS CORRECTAMENTE
   ========================================================= */

.riad-police input[style*="rgb(40, 167, 69)"],
.riad-police select[style*="rgb(40, 167, 69)"] {
    background: #f6fff8;
}

/* =========================================================
   CAMPOS CON ERROR
   ========================================================= */

.riad-police input[style*="rgb(220, 53, 69)"],
.riad-police select[style*="rgb(220, 53, 69)"] {
    background: #fff8f8;
}

/* =========================================================
   SELECT
   ========================================================= */

.riad-police select {
    appearance: auto;
    cursor: pointer;
}

/* =========================================================
   FECHAS
   ========================================================= */

.riad-police .wheel-date {
    cursor: pointer;
    background: #fff;
}

/* =========================================================
   BOTONES
   ========================================================= */

.riad-police button {

    min-height: 48px;

    padding: 12px 22px;

    border: none;
    border-radius: 10px;

    background: #f9c349;
    color: #222;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.riad-police button:hover {
    transform: translateY(-1px);
    opacity: .9;
}

/* =========================================================
   BOTONES RETOUR
   ========================================================= */

.riad-police #back-step1,
.riad-police #back-step2,
.riad-police #back-step3 {

    background: #eee;
    color: #333;
}

/* =========================================================
   BOTONES CONTINUER
   ========================================================= */

.riad-police #save-step1,
.riad-police #save-step2,
.riad-police #save-step3,
.riad-police #finish-checkin {

    background: #f9c349;
    color: #222;
}

/* =========================================================
   MENSAJES DE ERROR
   ========================================================= */

.riad-police [id$="-error"] {
    font-size: 13px;
    margin-top: 5px;
}

/* =========================================================
   ICONOS ?
   ========================================================= */

.riad-police .info-popup-icon {

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    box-sizing: border-box;

    border: 2px solid #f9c349;
    border-radius: 50%;

    background: transparent;

    color: #f9c349;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    float: right;

    margin-left: 8px;

    flex-shrink: 0;
}

.riad-police .info-popup-icon:hover {
    background: #f9c349;
    color: #fff;
}

/* =========================================================
   PASSPORT FIELDS
   ========================================================= */

#passport-fields {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   STEP 2
   ========================================================= */

#step2 {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   STEP 3
   ========================================================= */

#step3 {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   STEP 4
   ========================================================= */

#step4 {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   MOVIL
   ========================================================= */

@media (max-width: 600px) {

    .riad-police {
        padding: 15px;
    }

    .riad-police .step-title {
        font-size: 21px;
        margin-bottom: 20px;
    }

    .riad-police .step-circle {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .riad-police input,
    .riad-police select,
    .riad-police textarea,
    .riad-police button {
        font-size: 16px;
    }
}



/* ecran verification final*/
/* =========================
   STEP 4 - REVISION
========================= */


.step4-review {

    max-width:600px;

    margin:auto;

    padding:20px;

}



.step4-review h2 {

    text-align:center;

    color:#333;

    margin-bottom:10px;

}



.review-intro {

    text-align:center;

    color:#666;

    margin-bottom:25px;

}



/* Caja resumen */

#checkin-resume {


    background:#fff;

    border-radius:16px;

    padding:20px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

}



/* Títulos dentro del resumen */

#checkin-resume h3 {


    color:#b8860b;

    font-size:18px;

    border-bottom:1px solid #eee;

    padding-bottom:8px;

    margin-top:20px;

}



#checkin-resume h3:first-child {

    margin-top:0;

}



/* Datos */

#checkin-resume p {


    margin:8px 0;

    color:#444;

    font-size:15px;

}



#checkin-resume b {

    color:#222;

}



/* Firma */

#checkin-resume img {


    display:block;

    max-width:250px;

    margin:15px auto;

    border-radius:8px;

    border:1px solid #ddd;

}



/* Botones */

.review-back,
.review-finish {


    width:48%;

    margin-top:20px;

}



.review-back {

    background:#eee!important;

}



.review-finish {

    background:#f9c349!important;

}



/* móvil */

@media(max-width:600px){


    .review-back,
    .review-finish {

        width:100%;

        margin-top:10px;

    }

}


/* =========================================================
   SELECTOR DE FECHAS
   Jour | Mois | Année
========================================================= */

.wheel-popup {

    background: #fff;

    width: 360px;
    max-width: 92%;

    padding: 25px 20px 20px;

    border-radius: 16px;

    box-shadow:
        0 10px 40px rgba(0,0,0,.35);

    box-sizing: border-box;

}


/* =========================================================
   TÍTULO
========================================================= */

.date-popup-title {

    text-align: center;

    font-size: 20px;

    font-weight: 700;

    color: #333;

    margin-bottom: 22px;

}


/* =========================================================
   TRES COLUMNAS
========================================================= */

.date-selectors {

    display: flex;

    justify-content: center;

    align-items: flex-start;

    gap: 10px;

    width: 100%;

}


/* =========================================================
   CADA COLUMNA
========================================================= */

.date-selector-group {

    flex: 1;

    min-width: 0;

    text-align: center;

}


/* =========================================================
   TÍTULO:

   Jour
   Mois
   Année
========================================================= */

.date-selector-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 700;

    color: #555;

}


/* =========================================================
   SELECT
========================================================= */

.date-select {

    width: 100%;

    height: 48px;

    padding: 0 8px;

    border: 1px solid #ddd;

    border-radius: 10px;

    background: #fff;

    color: #333;

    font-size: 16px;

    font-weight: 600;

    text-align: center;

    box-sizing: border-box;

    cursor: pointer;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


/* =========================================================
   SELECT ACTIVO
========================================================= */

.date-select:focus {

    border-color: #f9c349;

    box-shadow:
        0 0 0 3px rgba(249,195,73,.20);

}


/* =========================================================
   PREVISUALIZACIÓN

   Date sélectionnée : 19/07/1979
========================================================= */

.date-selected-preview {

    margin-top: 22px;

    padding: 12px;

    border-radius: 10px;

    background: #fafafa;

    text-align: center;

    font-size: 15px;

    color: #555;

}


.date-selected-preview strong {

    color: #222;

    font-weight: 700;

}


/* =========================================================
   BOTONES
========================================================= */

.date-popup-buttons {

    display: flex;

    gap: 10px;

    margin-top: 20px;

}


/* =========================================================
   CANCELAR
========================================================= */

.date-cancel {

    flex: 1;

    padding: 12px;

    border: none;

    border-radius: 10px;

    background: #eee;

    color: #333;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

}


/* =========================================================
   OK
========================================================= */

.wheel-popup .wheel-ok {

    flex: 1;

    margin: 0;

    padding: 12px;

    border: none;

    border-radius: 10px;

    background: #f9c349;

    color: #222;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

}


/* =========================================================
   EFECTO BOTONES
========================================================= */

.date-cancel:active,
.wheel-popup .wheel-ok:active {

    transform: scale(.97);

}


/* =========================================================
   MÓVIL
========================================================= */

@media(max-width:600px) {

    .wheel-popup {

        width: 94%;

        max-width: 360px;

        padding: 22px 15px 18px;

    }


    .date-selectors {

        gap: 6px;

    }


    .date-selector-group label {

        font-size: 13px;

    }


    .date-select {

        height: 46px;

        font-size: 15px;

        padding-left: 4px;

        padding-right: 4px;

    }


    .date-selected-preview {

        font-size: 14px;

    }

}


/* =================================================
   MÓVIL
================================================= */

@media(max-width:600px) {

    .wheel-popup {

        width: calc(100% - 30px);

        max-width: 360px;

    }

    .wheel-columns {

        grid-template-columns:
            65px
            1fr
            75px;

        gap: 6px;

    }

}


/* =================================================
   BOTÓN OK DEL WHEEL
================================================= */

.wheel-ok {

    margin-top: 60px;

    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 10px;

    background: #f9c349;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

}


/* =================================================
   OVERLAY DEL WHEEL
================================================= */

.wheel-overlay {

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100dvh;

    background: rgba(0,0,0,.45);

    z-index: 999998;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    touch-action: none;

}


.wheel-overlay,
.wheel-overlay * {

    overscroll-behavior: contain;

}


/* =================================================
   TÍTULO DE CADA STEP
================================================= */

.step-title {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    font-size: 24px;

    font-weight: 700;

    color: #333;

    margin-bottom: 20px;

}


.step-circle {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #f9c349;

    color: #fff;

    font-size: 18px;

    font-weight: 700;

    line-height: 1;

    flex-shrink: 0;

}


/* =========================================================
   POPUPS INFORMATIVOS - ESTILO APP
========================================================= */

#entry-popup,
#passport-popup,
#arrivee-popup {

    position: fixed !important;

    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100dvh !important;

    background: rgba(0,0,0,.45) !important;

    z-index: 999999 !important;

    display: none;

    align-items: stretch !important;

    justify-content: flex-end !important;

    overflow: hidden;
}


/* =========================================================
   PANEL BLANCO
========================================================= */

#entry-popup > div,
#passport-popup > div,
#arrivee-popup > div {

    position: relative !important;

    background: #fff;

    width: 420px;

    max-width: 100%;

    height: 100dvh;

    box-sizing: border-box;

    padding: 80px 25px 30px 25px;

    border-radius: 20px 0 0 20px;

    overflow-y: auto;

    box-shadow:
        -8px 0 30px rgba(0,0,0,.18);

    transform: translateX(100%);

    transition:
        transform .35s ease;
}


/* =========================================================
   PANEL ABIERTO
========================================================= */

#entry-popup.popup-open > div,
#passport-popup.popup-open > div,
#arrivee-popup.popup-open > div {

    transform: translateX(0);
}


/* =========================================================
   BOTÓN ×
========================================================= */

.popup-close {

    position: absolute !important;

    top: 15px !important;
    right: 15px !important;

    width: 42px !important;
    height: 42px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;

    border-radius: 50% !important;

    background: #f5f5f5 !important;

    color: #333 !important;

    font-size: 30px !important;

    font-weight: 400 !important;

    line-height: 1 !important;

    cursor: pointer;

    z-index: 1000001 !important;

    box-shadow: none !important;

    transform: none !important;
}


/* =========================================================
   EFECTO AL PULSAR ×
========================================================= */

.popup-close:active {

    transform: scale(.92) !important;
}


/* =========================================================
   TÍTULOS DE LOS POPUPS
========================================================= */

#entry-popup h3,
#passport-popup h3,
#arrivee-popup h3 {

    margin-top: 0;

    margin-bottom: 20px;

    padding-right: 45px;

    font-size: 22px;

    color: #333;
}


/* =========================================================
   TEXTO DE LOS POPUPS
========================================================= */

#entry-popup p,
#passport-popup p,
#arrivee-popup p {

    color: #555;

    font-size: 16px;

    line-height: 1.6;

    margin: 0 0 15px 0;
}


/* =========================================================
   IMÁGENES DE LOS POPUPS
========================================================= */

#entry-popup img,
#passport-popup img,
#arrivee-popup img {

    width: 100%;

    height: auto;

    display: block;

    margin: 15px 0;

    border-radius: 12px;
}


/* =========================================================
   MÓVIL
========================================================= */

@media(max-width:600px) {

    #entry-popup > div,
    #passport-popup > div,
    #arrivee-popup > div {

        width: 100%;

        max-width: none;

        height: 100dvh;

        border-radius: 0;

        padding:
            80px
            20px
            30px;
    }
}

/* =================================================
   ICONOS ? DE AYUDA
   PASAPORTE / ENTRADA / FECHAS
================================================= */

.info-popup-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    box-sizing: border-box;

    border: 2px solid #f9c349;
    border-radius: 50%;

    background: transparent;

    color: #f9c349;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    float: right;

    margin-left: 8px;

    flex-shrink: 0;
}

.info-popup-icon:hover {
    background: #f9c349;
    color: #fff;
}

/* =========================================================
   INPUT AVEC ? D'AIDE en placeholder
========================================================= */

.input-with-help {
    position: relative;
    width: 100%;
    height: 48px;
}

.input-with-help input {
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;

    padding-right: 50px !important;

    box-sizing: border-box;
}

/* =========================================================
   ? DANS LE CHAMP — TOUJOURS CENTRÉ
========================================================= */

.input-with-help .info-popup-icon {
    position: absolute !important;

    right: 14px !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 22px !important;
    height: 22px !important;

    box-sizing: border-box;

    border: 2px solid #f9c349;
    border-radius: 50%;

    background: #fff;

    color: #f9c349;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    float: none !important;

    margin: 0 !important;
    padding: 0 !important;

    flex-shrink: 0;

    z-index: 10;
}

.input-with-help .info-popup-icon:hover {
    background: #f9c349;
    color: #fff;
}
/* =========================================================
   TITULO PHOTO NUMERO D'ENTREE
========================================================= */

.riad-police p {
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight:bold;
}


