
/* ==========================================
   BODA NEFTA Y CECI
   CONFIRMACION DE ASISTENCIA
========================================== */

/* ESCENA FINAL */

.escena:has(#formularioConfirmacion) {
    min-height: 100dvh;
    height: auto;
    padding-top: max(38dvh, 280px);
    padding-bottom: max(22dvh, 140px);
    padding-left: 10%;
    padding-right: 10%;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    box-sizing: border-box;
}

/* CONTENIDO DE LA ESCENA FINAL */

.escena:has(#formularioConfirmacion) .contenido-escena {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

/* NOMBRES DE LOS NOVIOS */

.escena:has(#formularioConfirmacion) .titulo-cinematico {
    font-size: clamp(42px, 6vw, 85px);
    line-height: 1.2;
    margin: 0 0 20px;
}

/* FORMULARIO PRINCIPAL */

.formulario-confirmacion {
    width: 100%;
    max-width: 440px;
    margin: 22px auto;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(255, 252, 244, 0.95);
    border: 1px solid #b8934e;
    border-radius: 20px;
    box-shadow: 0 10px 35px #80602e25;
    text-align: left;
}

/* TITULO DEL FORMULARIO */

.titulo-confirmacion {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(32px, 7vw, 48px);
    font-weight: normal;
    color: #92703a;
    text-align: center;
    line-height: 1.2;
    margin: 0 0 12px;
}

/* DESCRIPCION */

.descripcion-confirmacion {
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    color: #705636;
    margin: 0 0 20px;
}

/* CAMPOS DEL FORMULARIO */

.campo-confirmacion {
    margin-bottom: 16px;
}

.campo-confirmacion label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #80602e;
    margin-bottom: 6px;
}

/* ENTRADAS Y SELECTORES */

.campo-confirmacion input,
.campo-confirmacion select,
.campo-confirmacion textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    color: #59452c;
    background: #fffdf8;
    border: 1px solid #d5bc8b;
    border-radius: 10px;
}

.campo-confirmacion textarea {
    min-height: 90px;
    resize: vertical;
}

.campo-confirmacion input:focus,
.campo-confirmacion select:focus,
.campo-confirmacion textarea:focus {
    outline: 2px solid #b8934e;
    outline-offset: 2px;
}

/* BOTON ENVIAR CONFIRMACION */

.boton-confirmar {
    width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #bb9851,
        #92703a
    );

    border: 1px solid #b8934e;
    border-radius: 50px;
    box-shadow: 0 5px 18px #80602e30;

    cursor: pointer;

    transition:
        transform .2s,
        box-shadow .2s;
}

.boton-confirmar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px #80602e40;
}

.boton-confirmar:active:not(:disabled) {
    transform: translateY(0);
}

.boton-confirmar:focus-visible {
    outline: 2px solid #92703a;
    outline-offset: 3px;
}

.boton-confirmar:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* MENSAJES DE CONFIRMACION */

.mensaje-confirmacion {
    margin-top: 15px;
    font-size: 17px;
    text-align: center;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mensaje-confirmacion:empty {
    display: none;
}

.mensaje-confirmacion.correcto {
    color: #39734b;
}

.mensaje-confirmacion.error {
    color: #a33b35;
}

/* OCULTAR CONTROLES EN LA ESCENA FINAL */

#invitacion:has(.escena.activa #formularioConfirmacion)
.controles-cinematicos {
    display: none !important;
}

/* ==========================================
   ADAPTACION PARA TABLETAS
========================================== */

@media (min-width: 601px) and (max-width: 1024px) {

    .escena:has(#formularioConfirmacion) {
        padding-top: max(30dvh, 220px);
        padding-bottom: max(22dvh, 140px);
    }

    .escena:has(#formularioConfirmacion) .titulo-cinematico {
        font-size: clamp(45px, 8vw, 70px);
    }
}

/* ==========================================
   ADAPTACION PARA CELULARES
========================================== */

@media (max-width: 600px) {

    .escena:has(#formularioConfirmacion) {
        min-height: 100dvh;
        height: auto;
        padding-top: max(26dvh, 160px);
        padding-bottom: max(22dvh, 125px);
        padding-left: 10%;
        padding-right: 10%;
    }

    .escena:has(#formularioConfirmacion) .contenido-escena {
        width: 100%;
        max-width: 100%;
    }

    .escena:has(#formularioConfirmacion) .titulo-cinematico {
        font-size: clamp(36px, 10vw, 54px);
        margin-bottom: 12px;
    }

    .formulario-confirmacion {
        width: 100%;
        padding: 16px;
        margin: 18px auto;
        border-radius: 15px;
    }

    .titulo-confirmacion {
        font-size: clamp(28px, 8vw, 38px);
    }

    .descripcion-confirmacion {
        font-size: 16px;
    }

    .campo-confirmacion label {
        font-size: 16px;
    }

    .campo-confirmacion input,
    .campo-confirmacion select,
    .campo-confirmacion textarea {
        font-size: 16px;
    }

    .boton-confirmar {
        min-height: 48px;
        font-size: 17px;
    }

    .mensaje-confirmacion {
        font-size: 16px;
    }
}

/* CELULARES PEQUENOS */

@media (max-width: 360px) {

    .escena:has(#formularioConfirmacion) {
        padding-left: 8%;
        padding-right: 8%;
    }

    .formulario-confirmacion {
        padding: 14px;
    }

    .titulo-confirmacion {
        font-size: 28px;
    }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .boton-confirmar {
        transition: none;
    }
}

/* ==========================================
   FIN DE ESTILOS DE CONFIRMACION
========================================== */
