/* =========================================================
   OFRENDA EXPERIENCE
========================================================= */
:root {
    --yellow-font: #F2B532;
}

html{
   font-size: 16px;
}
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: #000;
    color: #fff;
}

a{
   color: var(--yellow-font);
   font-weight: 600;
}

.yellow_font{
   color: var(--yellow-font);
}

#ofrenda-experience {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

@media(max-width:767px){
   html{
      font-size: 14px;
   }
}

/* =========================================================
   EXPERIENCE LOADER
========================================================= */

.experience-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.experience-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.loader-content {
    width: min(280px, 70vw);
    text-align: center;
}


.loader-text {
    margin-bottom: 18px;
}


/* BAR TRACK */

.loader-bar {
    position: relative;

    width: 100%;
    height: 2px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.2);
}


/* MOVING LIGHT */

.loader-bar::after {
    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 35%;
    height: 100%;

    background: #fff;

    transform: translateX(-100%);

    animation:
        ofrenda-loader-bar 1.4s ease-in-out infinite;
}


@keyframes ofrenda-loader-bar {

    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(300%);
    }

}


/* =========================================================
   BACKGROUND VIDEO
========================================================= */

.fullbrowser-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    z-index: 0;
    background: #000;
}

#experience-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}


/*
 * Optional overlay.
 * Useful later if we want to darken specific scenes
 * without modifying the actual video.
 */
#video-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}


/* =========================================================
   EXPERIENCE UI
========================================================= */

#experience-ui {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        max(24px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));

    box-sizing: border-box;

    opacity: 0;
    /* visibility: hidden; */
    pointer-events: none;
    
    transition: opacity 2500ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
    transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */

    z-index: 1;
}

.section.section-active {
    opacity: 1;
    /* visibility: visible; */
    pointer-events: auto;
    z-index: 2;
}

.section-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}


/* =========================================================
   WELCOME
========================================================= */

#welcome .section-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}
.logo-container img{
   width: 100%;
   height: auto;
}

.campaign-tagline {
    font-size: clamp(14px, 2vw, 2rem);
    line-height: 1.1;
}

.campaign-logo {
    font-size: clamp(32px, 5vw, 72px);
    line-height: 0.95;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 700px;
    width: 80%;
}

.cta-text {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    line-height: 1.2;
}


/* =========================================================
   BUTTONS
========================================================= */

.cta-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2vh;
}

button {
    appearance: none;
    border: 0;

    padding: 14px 30px;

    font-size: 1rem;
    font-family: 'Formula1_bold';
    text-transform: uppercase;


    cursor: pointer;

    transition:
        transform 0.25s ease,
        opacity 0.5s ease,
        background 0.5s ease;
}

button:hover {
    transform: scale(1.02);
}

button:active {
    transform: scale(0.98);
}

.cta-btn button:disabled {
    cursor: default;
    opacity: 0.5;
    transform: none;
}
.brush-button{
   position: relative;
   background-color: transparent;
   color: #fff;
   padding: 10px 80px;
   width: 100%;
   max-width: 380px;
   border: 0;
   border-radius: 5px;
   opacity: 0;
}
.section-active .brush-button{
   opacity: 1;
}
.brush-button:hover{
   color: #000;
   background-color: rgba(255,255,255,0.85);
}

.brush-button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: url("../assets/button_border.png")
        center / 100% 100%
        no-repeat;

    z-index: -1;
    pointer-events: none;
}


/* =========================================================
   ABOUT
========================================================= */
#about{
   background-color: rgba(0, 0, 0, 0.7);
}

#about .section-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

#about .logo-container{
   margin-bottom: 24px;
}

.about-message {
    width: min(900px, 100%);
    margin: 24px 0;
    text-align: left;
    text-shadow: 0 0 20px rgb(0 0 0);
}

.about-message p {
    margin: 0 auto 16px;
    font-size: 1rem;
    line-height: 1.3;
    width: 80%;
}

.about-message p:last-child {
    margin-bottom: 0;
}

@media(max-width:600px){
   .about-message p {
       width: 87%;
   }
}


/* =========================================================
   FORM
========================================================= */

#form-container{
   background-color: rgba(0, 0, 0, 0.7);
}

#form-container .section-content {
    justify-content: center;
    align-items: center;
}
#form-container fieldset{
   border: none;
}

#form-wrapper {
    width: min(650px, 100%);
}


/*
 * We will refine Formidable styles once the real
 * form markup is available.
 */
#form-wrapper form {
    width: 100%;
}

#form-wrapper .frm_submit {
    display: none;
}

.form-custom-error {
    display: none;
    margin-top: 15px;
}

.form-custom-error.is-visible {
    display: block;
}
.frm_error{
   font-weight: 700;
  color: #fff;
  background-color: red;
  padding: 2px 10px;
  border-radius: 2px;
  margin: 10px 0;
}


/* =========================================================
   THANKS
========================================================= */



#review .section-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.user-photo-container {
    width: min(600px, 100%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.user-photo-container .photo {
  position: relative;
    width: clamp(150px, 24vw, 280px);
    aspect-ratio: 1 / 1.2;

    overflow: hidden;
    border-radius: min(40px, 5vw);

    margin-bottom: -20px;
    z-index: 1;
}

.user-photo-container .photo.is-hidden {
    display: none;
}

#tribute-photo {
    width: 80%;
    height: 81%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: sepia(1) contrast(0.8);
    position: absolute;
    left: 10%;
    top: 10%;
}

#tribute-name {
  position: relative;
  z-index: 2;
    font-size: clamp(30px, 5vw, 64px);
    line-height: 1;
    text-shadow: 0 0 10px #FFA919;
}

.tribute-frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.thanks-message {
    font-size: 1rem;
    line-height: 1.3;
}

.disclaimer {
    width: min(540px, 100%);
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.7;
}

#review .cta-btn{
   gap:2vw;
}

#btn-edit-tribute{
   width: 30%;
   padding: 10px;
}

#btn-submit-tribute{
   color: #000;
   background-color: rgba(255,255,255,1);
   width: 60%;
}

@media(max-width:600px){
   #tribute-name{
      font-size: 3.8rem;
   }
}

#sending .section-content{
   display: flex;
   justify-content: flex-end;
   align-items: center;
   padding-bottom: 10vh;
}

.grecaptcha-badge{
   visibility: hidden;
}

/* =========================================================
   LOADER
========================================================= */

.experience-loader {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 100;

    background: #000;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.experience-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    text-align: center;
}

.loader-icon {
    font-size: 36px;
    animation: candlePulse 1.5s ease-in-out infinite;
}

.loader-text {
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#btn-start-video{
   opacity: 1;
}

@keyframes candlePulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}


/* =========================================================
   TERMS MODAL
========================================================= */

.terms-modal {
    position: fixed;
    inset: 0;

    z-index: 200;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.8);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.terms-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.terms-modal-inner {
    position: relative;

    width: min(800px, 100%);
    max-height: min(80dvh, 800px);

    padding: 40px 28px 28px;

    box-sizing: border-box;

    background: #fff;
    color: #000;
}

.terms-close {
    position: absolute;
    top: 10px;
    right: 14px;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.terms-scroll {
    max-height: calc(80dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.terms-scroll h2 {
    margin-top: 0;
}

.terms-scroll p {
    line-height: 1.55;
}


/* =========================================================
   INTERACTION LOCK
========================================================= */

/*
 * JS will add this class while a cinematic
 * transition is playing.
 */
#ofrenda-experience.is-transitioning #experience-ui {
    pointer-events: none;
}


/* =========================================================
   PORTRAIT
========================================================= */

@media (orientation: portrait) {

    #welcome .section-content {
        padding-bottom: 15vh;
    }

    /* .campaign-logo {
        font-size: clamp(34px, 9vw, 64px);
    }

    .campaign-tagline {
        font-size: clamp(18px, 4vw, 26px);
    }

    .cta-text {
        font-size: clamp(17px, 4vw, 24px);
    } */

    #about .section-content {
        padding-bottom: clamp(40px, 8vh, 90px);
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .section {
        padding:
            max(18px, env(safe-area-inset-top))
            max(18px, env(safe-area-inset-right))
            max(18px, env(safe-area-inset-bottom))
            max(18px, env(safe-area-inset-left));
    }

    .cta-btn button {
        font-size: 12px;
        padding: 10px 0;
    }

    .about-message {
        margin-bottom: 20px;
    }

    .disclaimer {
        font-size: 11px;
    }

    .terms-modal {
        padding: 12px;
    }

    .terms-modal-inner {
        padding: 42px 20px 22px;
        max-height: 90dvh;
    }

    .terms-scroll {
        max-height: calc(90dvh - 80px);
    }

}


/* =========================================================
   MULTI-STEP FORM
========================================================= */

#form-container .campaign-tagline {
    font-size: clamp(1.5rem, 2.6vw, 2.6rem);
    line-height: 1.1;
    text-shadow: 0 0 10px #FFA919;
    margin-bottom: -1.5vh;
     z-index: 1;
     position: relative;
}

#form-container .campaign-logo {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    line-height: 0.95;
}


#frm_field_33_container,
#frm_field_36_container,
#frm_field_34_container,
#frm_field_35_container,
#frm_field_37_container {
    display: none;
}

#frm_field_33_container.is-active,
#frm_field_36_container.is-active,
#frm_field_34_container.is-active,
#frm_field_35_container.is-active,
#frm_field_37_container.is-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1vh;
    margin-bottom: 3vh;
}


/* Hide native Formidable submit */

#frm_field_32_container {
    display: none;
}

.frm_form_field label,
.frm_form_field input{
   width: 100%;
}

.frm_form_field label {
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    line-height: 1.2;
    text-align: center;
}
.frm_form_field input{
   background-color: transparent;
   color: #fff;
   border: none;
   font-size: clamp(0.9rem, 1.2vw, 1.2rem);
   line-height: 1.2;
   display: block;
   position: relative;
}
input:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

input::placeholder {
    color: rgba(255,255,255,0.8);
    opacity: 0.9;
}
.frm_checkbox label{
   font-size: 0.9rem;
}

.frm_dropzone .fallback input[type=file]{
   font-size: 0.85rem;
}
.frm_dropzone.frm_single_upload{
   display: flex;
   align-items: center;
}

.brush-input{
   position: relative;
   width: 100%;
   padding: 10px;
}


.brush-input::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: url("../assets/input_border.png")
        center / 100% 100%
        no-repeat;

    z-index: -1;
    pointer-events: none;
}

input[type="checkbox"]{
   display: inline;
   width: auto;
}

@media(max-width:767px){
   .frm_form_field input{
      font-size: 16px;
   }
   
   .brush-button {
      padding: 10px 30px;
      width: 60%;
      font-size: 0.8rem
   }
}


/* Navigation */

.ofrenda-form-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.ofrenda-form-navigation button[hidden] {
    display: none;
}
.ofrenda-form-navigation .brush-input{
   max-width: 350px;
}


#thank-you{
   background-color: rgba(0, 0, 0, 0.3);
}

#thank-you .section-content{
   height: auto;
   text-align: center;
}

.thanks{
   font-size: clamp(5.5rem, 13vw, 13rem);
    font-weight: 100;
    line-height: 0.8;
    margin: 0;
    text-shadow: 0 0 10px #FFA919;
}