

/* Override Bootstrap rounded class to be 2x larger globally for demo pages */
.rounded {
  border-radius: 0.75rem !important;
}

.demo-page-main {
  background-color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.verify-otp-page-main {
  background-image: url('../images/Image-Background-PortraitsXS.png');
  background-position: left top;
  background-repeat: no-repeat;
  background-size: auto 100dvh;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Verify OTP page content styling */
.verify-otp-content-container {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.8);
}

.verify-otp-title {
  color: var(--brand-primary);
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  width: 100%;
}

.verify-otp-text {
  color: #4A4A4A;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  text-align: left;
  width: 100%;
}

.verify-otp-form-container {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
}

.verify-otp-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D1D1D1;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: white;
}

.verify-otp-input:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(75, 142, 193, 0.25);
}

.verify-otp-button {
  background-color: var(--brand-primary);
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.75rem 3rem;
  width: 100%;
  max-width: 400px;
}

.verify-otp-button:hover:not(:disabled) {
  opacity: 0.9;
  color: white;
}

.verify-otp-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.verify-otp-resend {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.verify-otp-resend:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.demo.navbar {
  background-color: white;
  font-family: "Onest", sans-serif;
}

.demo-container {
  font-family: "Onest", sans-serif;
  color: var(--brand-secondary);
  min-height: 100vh;
  padding: 0;
  padding-top: 0 !important;
}

.demo-intro-content {
  width: 60%;
  margin-left: auto;
}

.demo-intro-content-inner {
  width: 80%;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

/* Demo page typography */
.demo-title {
  color: var(--brand-primary);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.3;
}

.demo-subtitle {
  color: var(--brand-secondary);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.5;
}

.demo-description {
  color: var(--brand-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
  line-height: 1.5;
}

.demo-description strong {
  font-weight: 700;
}

.demo-link {
  color: var(--brand-primary);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-weight: 700;
}

.demo-link:hover {
  opacity: 0.8;
  color: var(--brand-primary);
}

.demo-instruction {
  color: var(--brand-secondary);
  font-size: 1rem;
  margin-bottom: 0;
  text-align: left;
}

/* Mobile logo - hidden by default, shown on mobile */
.demo-mobile-logo-container {
  display: none;
}

.demo-mobile-logo {
  max-height: 40px;
  height: auto;
  width: auto;
}

.demo-email-form {
  width: 80%;
}

/* /demo left visual column */
.demo-visual-column {
  width: 40%;
  padding: 0;
}

.demo-visual-top,
.demo-visual-bottom {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0;
}

.demo .nav-item.active {
  font-weight: 700;
  border-bottom: 4px solid var(--brand-primary);
}

a {
  --bs-link-color-rgb: 75, 142, 193;
}

/* buttons */
.btn {
  font-family: "Onest", sans-serif;
}

.terms-body {
  --bs-border-color: var(--color-border-border-disabled);
  background-color: var(--color-border-border-disabled);
}

.terms-container .title {
  color: var(--brand-primary);
}

/* Demo form styling */
.demo-email-form .form-control,
.demo-email-form .form-select {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 0.75rem;
}

.demo-email-form .form-control:focus,
.demo-email-form .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(75, 142, 193, 0.25);
  outline: none;
}

.demo-email-form .input-group {
  border-radius: 8px;
}

.demo-email-form .input-group-text {
  border-radius: 8px 0 0 8px;
  border: 1px solid #e0e0e0;
  border-right: none;
  background-color: #fff;
  padding: 0.5rem 0.75rem;
}

.demo-email-form .input-group .form-control.rounded-end {
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.demo-email-form .input-group .form-control.rounded-end:focus {
  border-left: 1px solid var(--brand-primary);
}

.demo-email-form .input-group:focus-within .input-group-text {
  border-color: var(--brand-primary);
}


.demo-button-small {
  /* font-size: 0.875rem; */
}

/* Demo navbar logo sizing */
.demo.navbar img {
  max-height: 40px;
  height: auto;
  width: auto;
}

/* Modal styles */
.demo-modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.demo-modal-header {
  border-bottom: none;
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-modal-logo {
  max-height: 40px;
  height: auto;
  width: auto;
}

.demo-modal-body {
  padding: 0 2rem 1rem;
}

.demo-modal-title {
  color: var(--brand-primary);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: left;
  line-height: 1.3;
}

.demo-modal-body p {
  color: var(--brand-secondary);
  /* font-size: 0.875rem; */
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

.demo-modal-link {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.demo-modal-link a {
  color: var(--brand-primary);
  text-decoration: underline;
}

.demo-modal-link a:hover {
  opacity: 0.8;
  color: var(--brand-primary);
}

.demo-modal-footer {
  border-top: none;
  padding: 1rem 2rem 2rem;
  display: flex;
  justify-content: center;
}

/* Responsive adjustments for demo / verify pages */
@media (max-width: 991.98px) {
  .demo-page-main {
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .demo-page-main {
    background-image: none !important;
    background-color: #ffffff;
  }

  .verify-otp-page-main {
    background-image: none !important;
    background-color: #ffffff;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .demo.navbar {
    display: none !important;
  }

  .demo-container {
    padding: 0;
    position: relative;
    z-index: 0;
    align-items: stretch;
    justify-content: flex-start;
  }

  .demo-container .demo-visual-column {
    display: none !important;
  }

  .demo-mobile-logo-container {
    display: flex !important;
    visibility: visible !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .demo-mobile-logo {
    display: block !important;
    visibility: visible !important;
    max-height: 40px !important;
    height: auto !important;
    width: auto !important;
  }

  .demo-intro-content {
    width: 100%;
    margin-left: 0;
    padding: 1.25rem 1rem;
    min-height: 100vh;
    order: 0;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
  }

  .demo-intro-content-inner,
  .demo-email-form {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .demo-title {
    font-size: 1.5rem;
    font-weight: 500;
  }

  .demo-subtitle {
    font-size: 1.25rem;
  }

  .demo-description,
  .demo-instruction {
    font-size: 0.95rem;
  }

  .verify-otp-page-main .demo-container {
    padding: 0 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .verify-otp-page-main .demo-intro-content {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 1.25rem 1rem !important;
    min-height: auto;
    order: 0;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
  }

  .verify-otp-content-container,
  .verify-otp-form-container {
    max-width: 100%;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .verify-otp-content-container,
  .verify-otp-form-container,
  .demo-email-form {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .verify-otp-title {
    font-size: 2rem;
    text-align: center;
  }

  .verify-otp-text {
    font-size: 0.95rem;
    text-align: center;
  }

  /* Apply same margins as /demo page in mobile */

  /* Modal responsive */
  .demo-modal-header {
    padding: 1.5rem 1.5rem 0.75rem;
  }

  .demo-modal-body {
    padding: 0 1.5rem 0.75rem;
  }

  .demo-modal-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .demo-modal-body p {
    font-size: 0.8rem;
  }

  .demo-modal-footer {
    padding: 0.75rem 1.5rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .demo-container .demo-visual-column {
    display: none !important;
  }

  .demo-title {
    font-size: 1.5rem;
    font-weight: 500;
  }

  .demo-subtitle {
    font-size: 1.25rem;
  }

  .demo-description,
  .demo-instruction {
    font-size: 0.95rem;
  } 

  .demo-button-small {
    /* font-size: 0.8rem; */
  }

  /* Modal mobile */
  .demo-modal-header {
    padding: 1rem 1rem 0.5rem;
  }

  .demo-modal-body {
    padding: 0 1rem 0.5rem;
  }

  .demo-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .demo-modal-body p {
    /* font-size: 0.75rem; */
    margin-bottom: 0.75rem;
  }

  .demo-modal-footer {
    padding: 0.5rem 1rem 1rem;
  }

}