/* =========================================================
   BASE LAYOUT – MOBILE FIRST
   ========================================================= */

.moratorium-body {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    font-family: "Montserrat", serif !important;
    background-color: #fbfbfb;
    color: #333;
}

.moratorium-container {
    width: 100%;
    max-width: 400px;
    background: #fbfbfb;
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* =========================================================
   PAGE STRUCTURE
   ========================================================= */

.moratorium-page {
    display: none;
    padding-bottom: 40px;
}

.moratorium-page.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.moratorium-page-container {
    padding: 1em 5%;
}

/* Intro Page */
.moratorium-container .page-intro {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    padding-bottom: 100px;
}

.moratorium-container .page-intro-content {
    width: 85%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.moratorium-container .pre-header {
    color: #2b2b2b;
    font-size: 3vw;
    font-weight: 700;
    letter-spacing: 4.8px;
}

.moratorium-container .header {
    color: #2b2b2b;
    font-size: 5.6vw;
    font-weight: 600;
}
.moratorium-container .desc{
    font-size: 3vw;
}

.moratorium-container .label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */

.moratorium-container .input-family {
    margin-bottom: 20px;
}

.moratorium-container input[type="text"],
.moratorium-container input[type="tel"],
.moratorium-container input[type="email"],
.moratorium-container select {
    background-color: #fff;
    font-family: Montserrat;
    border-radius: 15px;
    padding: 5px 10px;
    border: 1px solid #2b2b2b;
    width: 100%;
}

.moratorium-container option {
    padding: 5px;
}

/* =========================================================
   DECLARATIONS
   ========================================================= */

/* .moratorium-container .declaration-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #eee;
    margin-bottom: 12px;
} */

/* .moratorium-container .declaration-item input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
    cursor: pointer;
}

.moratorium-container .declaration-item label {
    font-size: 13px;
    line-height: 1.5;
} */

.declaration-plain {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 24px;
}
.circle-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}
.circle-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.circle-checkbox .checkmark {
    width: 25px;
    height: 25px;
    aspect-ratio:1;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #c9c9c9;
    margin-top: 4px;
    position: relative;
    box-sizing: border-box;
}

.circle-checkbox input:checked + .checkmark {
    background: #5ED9C1;
    border: 2px solid #c9c9c9;
}

/* White tick */
.circle-checkbox input:checked + .checkmark::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    left: 7px;
    top: 4px;
}
.checkbox-text {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    color: #2b2b2b;
}
.checkbox-text a,-link {
    color: #d11e33;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.moratorium-container .btn {
    width: 100%;
    padding: 20px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: Montserrat;
    background: none;
    border: none;
    text-align: center;
}

.moratorium-container .btn-primary,
.moratorium-container .btn-submit {
    background-color: #d11e33;
    color: #fff;
}

.moratorium-container .btn-primary:hover,
.moratorium-container .btn-submit:hover {
    background-color: #b0182a;
}

.moratorium-container .btn-secondary {
    background-color: #fff;
    color: #2b2b2b;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.15);
}


.moratorium-container .btn.disabled,
.moratorium-container .btn:disabled {
    background-color: #ccc !important;
    color: #888 !important;
    cursor: not-allowed;
}


/* =========================================================
   MODAL
   ========================================================= */

.moratorium-container .custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.moratorium-container .modal-content {
    background: #fff;
    width: 85%;
    max-width: 350px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   UTILITIES
   ========================================================= */

.full { width: 100%; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }



/* Hide branch at first */
#branchdiv {
    display: none;
}

/* =========================================================
   REVIEW & CONFIRMATION
   ========================================================= */

.review-list-div {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10);
    padding: 20px;
}

.review-item {
    display: flex;
    flex-direction: column;
}

.review-label {
    font-size: 14px;
    color: #DC2A54;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-value {
    font-size: 14px;
    color: #2b2b2b;
    font-weight: 500;
}

/* =========================================================
   FULLSCREEN LOADING OVERLAY
   ========================================================= */

#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10000; /* higher than modal */
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* acknowledgement */
.page-acknowledgement {
  padding-top: 0px;
  width: 100%;
  min-height: 90dvh;
  max-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow: auto;
  z-index:9999999;
}
.acknowledgement-success-background {
  padding: 30px 30px 80px 30px;
  background: radial-gradient(
    192.9% 192.9% at 20.8% 8.5%,
    #dc2a54 0%,
    #95002f 100%
  );
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.confirmation-trx-summary {
  border-radius: 15px 15px 0px 0px;
  margin-top: -30px;
  margin-bottom: -30px;
  z-index: 3;
  position: relative;
  flex:1;
}
.confirmation-details-div{
    margin-top: -40px;
    z-index: 1000;
    position: relative;
}
.confirmation-trx-summary-title {
  color: #2b2b2b;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.acknowledgement-header {
  color: #fff;
  font-family: Montserrat;
  font-size: 5vw;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  width: 90%;
}
.acknowledgement-subheader {
  color: #fff;
  font-family: Montserrat;
  font-size: 3.5vw;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  width: 70%;
}
.confirmation-trx-summary {
  padding: 20px;
  border-radius: 15px 15px 0px 0px;
  background-color: #fff;
}
.acknowledgementButtonDiv{
  background: #fff;
  padding: 20px;
}
.hands-success {
  position: absolute;
  right: 0px;
  bottom: -40px;
  z-index: 2;
  width: 40%;
}
.hands-fail {
  position: absolute;
  right: 0px;
  bottom: -10px;
  z-index: 2;
  width: 25%;
}
.confetti-success {
  position: absolute;
  right: 0px;
  top: 0px;
  width: 30%;
  z-index: 1;
}
.label-badge {
  border-radius: 20px;
  padding: 0px 20px;
  font-weight: 400;
  font-size: 2.8vw;
  text-align: center;
  margin: 5px 0px;
}
.label-badge-success {
  outline: 1px solid #49ca95;
  color: #49ca95;
}
.label-badge-failed {
  outline: 1px solid #d64949;
  color: #d64949;
}

/* loading animation */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s linear;
}

#loadingOverlay.show {
  visibility: visible;
  opacity: 1;
}

#lottie-container {
  width: 80px;
  height: 80px;
}
.confirmation-details-title {
  font-size: 16px !important;
  font-weight:600;
}

.confirmation-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.branding-header{
  justify-content: space-between;
  align-items: center;
  display:none;
  z-index: 2;
}
/* =========================================================
   DESKTOP – MOBILE PHONE (90vh, FIXED ASPECT RATIO)
   ========================================================= */
@media (min-width: 768px) {

  .branding-header{
    display: flex;
  }

    body {
        background: #e5e5e5;
    }

    .moratorium-body {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5vh 0; /* space above & below device */
    }

    .moratorium-container {
        height: 90vh;                /* controlled by viewport */
        aspect-ratio: 390 / 844;     /* keeps phone proportion */
        background: #fbfbfb;
        border-radius: 28px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.25);
        border: 1px solid #ddd;
        overflow-x: hidden;
        overflow-y: auto;

        /* Firefox */
        scrollbar-width: none;

        /* Internet Explorer / Edge (legacy) */
        -ms-overflow-style: none;
        padding-top: 0;
    }
    .moratorium-page {
        padding-top: 2em;
    }
    .page-intro{
        padding-top: 0;
    }
    #page-success{
        padding-top: 0;
    }
    .label-badge{
        font-size:10px;
    }


/* Chrome, Safari, Edge (Chromium) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

    .moratorium-container .page-intro {
        min-height: 100%;
        overflow-y: auto;
    }

    /* Lock typography → desktop behaves like mobile */
    .moratorium-container .header {
        font-size: 24px;
        line-height: 30px;
    }

    .moratorium-container .pre-header {
        font-size: 12px;
        letter-spacing: 6px;
    }
    .moratorium-container .desc{
        font-size: 12px;
    }
    .acknowledgement-header {
      font-size: 24px;
    }
    .acknowledgement-subheader {
      font-size: 14px;
    }
}
