


body, html {
  height: 100%;
  line-height: 1.8;
  background-color: #fff2e6;
}

html {
  scroll-padding-top: 90px; /* navbar height + buffer */
}

/* Jenn's favorite fonts */
@font-face {
    font-family: "Catamaran";
    src: url("../fonts/Catamaran/Catamaran-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Nanum Myeongjo";
    src: url("../fonts/Nanum_Myeongjo/NanumMyeongjo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Nanum Myeongjo";
    src: url("../fonts/NanumMyeongjo-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Nanum Myeongjo";
    src: url("../fonts/NanumMyeongjo-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

/* tightens things up a bit */
@media (max-width: 600px) {
  .w3-display-left {
    padding: 16px !important;
  }
}

.w3-bar .w3-button {
  padding: 16px;
}

.logo-img {
  height: 48px;
  width: auto;
}

#mySidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: white;
    z-index: 10000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
}

#mySidebar.active {
    display: block ;
}

#sidebarOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.2s ease;

    z-index: 1500;
}

/* Active overlay */
#sidebarOverlay.active {
    opacity: 1;
    pointer-events: auto;
}
/* Slightly larger on small screens if you want */
@media (max-width: 600px) {
  .logo-img {
	height: 56px;
  }
}

.tcm-card {
  background-color: #99ffcc;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(6px);
}

.modal-content input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

.modal-content button:hover {
    background: #357bd8;
}


.close:hover {
    color: #000;
}

/* animation */
@keyframes popIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 64px;
    padding: 0 20px;

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

    background: #fff2e6;;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.08);*/
    z-index: 1000;
}

/* Sections */
.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-center {
    gap: 18px;
}

.nav-right {
    gap: 12px;
}

/* Links */
.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.nav-link:hover {
    background: #f2f2f2;
}

/* Button */
.nav-button {
    border: none;
    background: #4a90e2;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.nav-button:hover {
    background: #357bd8;
}

.desktop-auth-links {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Hamburger */
.hamburger {
	display: none;
	border: 0;
	background: transparent;
	padding: 8px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

/* Mobile behavior */
@media (max-width: 768px) {
	.nav-center {
		display: none;
	}

	.desktop-auth-links {
		display: none;
	}

	.hamburger {
		display: block;
	}
}

/* ===== SIDEBAR BASE ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 260px;
    height: 100%;

    background: #ffffff;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);

    padding: 10px 0;
    touch-action: pan-y;

    /* 🔥 Key changes */
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);

    z-index: 2000;
}

/* Active (visible state) */
.sidebar.active {
    transform: translateX(0);
}

/* ===== HEADER ===== */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 18px;
    font-weight: 600;
    font-size: 16px;

    border-bottom: 1px solid #eee;
}

/* Close button */
.close-btn {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #000;
}

/* ===== LINKS ===== */
.sidebar-link {
    display: block;
    padding: 12px 20px;

    text-decoration: none;
    color: #333;
    font-size: 14px;

    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: #f5f7fa;
    padding-left: 24px;
}

/* ===== AUTH SECTION ===== */
.sidebar-auth {
    padding: 10px 0;
}

/* Logout subtle styling */
.sidebar-link.logout {
    color: #c0392b;
}

/* ===== BUTTON ===== */
.sidebar-button {
    width: calc(100% - 40px);
    margin: 10px 20px;
    padding: 10px;

    border: none;
    border-radius: 6px;

    background: #4a90e2;
    color: white;
    font-weight: 500;

    cursor: pointer;
}

.sidebar-button:hover {
    background: #357bd8;
}

/* ===== DIVIDER ===== */
.sidebar-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.login-extra {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #666;
}

.login-extra a {
    color: #4a90e2;
    text-decoration: none;
    margin-left: 4px;
    font-weight: 500;
}

.login-extra a:hover {
    text-decoration: underline;
}

.login-help {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
}

.login-help a {
    color: #4a90e2;
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

/* ===== AUTH PAGE WRAPPER ===== */
.auth-wrapper {
    display: flex;
    justify-content: center;

    align-items: flex-start;   /* 👈 KEY FIX */
    padding-top: 80px;         /* keeps spacing nice under navbar */
}

/* ===== CARD ===== */
.auth-card {
    width: 100%;
    max-width: 380px;
    background: white;

    padding: 30px;
    border-radius: 14px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Title */
.auth-card {
    width: 100%;
    max-width: 380px;
    background: white;

    padding: 14px 30px 20px 30px;

    border-radius: 14px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.auth-title {
  margin: 0;
  padding: 0;

  line-height: 1;

  text-align: center;

  font-size: 22px;
  font-weight: 600;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}


/* ===== FORM ===== */
.auth-form {
  text-align: left;
  min-height: 52px;
  padding: 4px 14px 14px 14px;
}

.auth-form input,
.auth-form button:not(.field-help-btn)  {
  width: 100%;
  height: 42px;
  padding: 12px 14px;

  border: 1px solid #ddd;
  border-radius: 8px;

  font-size: 14px;

  box-sizing: border-box;
}



/* Override fixed height for file inputs */
.auth-form input[type="file"] {
  height: 100% !important;
  padding: 0;
}

.auth-form input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

/* Button */
.auth-form button:not(.field-help-btn) {
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.auth-form button:hover {
    background: #357bd8;
}

/* Footer */
.auth-footer {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

.auth-footer a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   SITE FOOTER
   ========================================================= */

.site-footer {
  margin-top: 60px;
  color: #334033;
  background: #f3f5f2;
  border-top: 1px solid #d7ddd5;
}


/* =========================================================
   MAIN FOOTER LAYOUT
   Desktop order:
   Support | Explore | Secure Payments
   ========================================================= */

.footer-container {
  display: grid;

  grid-template-columns:
    minmax(240px, 1.1fr)
    minmax(180px, 0.75fr)
    minmax(280px, 1.15fr);

  grid-template-areas:
    "support explore payments";

  align-items: start;
  gap: 48px;

  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 48px;
}

.footer-support {
  grid-area: support;
}

.footer-navigation {
  grid-area: explore;
}

.footer-payments {
  grid-area: payments;
}

.footer-section {
  min-width: 0;
  text-align: left;
}


/* =========================================================
   HEADINGS AND TEXT
   ========================================================= */

.footer-heading {
  position: relative;

  margin: 0 0 20px;
  padding-bottom: 11px;

  color: #253725;

  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.025em;
}

.footer-heading::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 0;

  width: 42px;
  height: 3px;

  background: #2c4e28;
  border-radius: 3px;
}

.footer-subheading {
  margin: 22px 0 12px;

  color: #334433;

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.footer-text {
  margin: 0 0 18px;

  color: #586358;

  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-small-text {
  margin: 12px 0 0;

  color: #6b746b;

  font-size: 0.78rem;
  line-height: 1.55;
}


/* =========================================================
   SUPPORT BUTTON
   ========================================================= */

.footer-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 43px;
  padding: 10px 18px;

  color: #ffffff;
  background: #2c4e28;

  border: 1px solid #2c4e28;
  border-radius: 7px;

  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;

  text-decoration: none;
  cursor: pointer;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.footer-primary-button:link,
.footer-primary-button:visited {
  color: #ffffff;
  text-decoration: none;
}

.footer-primary-button:hover,
.footer-primary-button:focus {
  color: #ffffff;
  background: #213d1f;
  border-color: #213d1f;

  text-decoration: none;

  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(31, 61, 29, 0.18);
}

.footer-primary-button:focus-visible {
  outline: 3px solid rgba(44, 78, 40, 0.25);
  outline-offset: 2px;
}


/* =========================================================
   EXPLORE / NAVIGATION LINKS
   ========================================================= */

.footer-link-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.footer-link-list li {
  margin: 0 0 11px;
  padding: 0;
}

.footer-link-list a,
.footer-link-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 2px 0;

  color: #4b584b;
  background: none;

  border: 0;

  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;

  text-decoration: none;
  cursor: pointer;

  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.footer-link-list a:link,
.footer-link-list a:visited {
  color: #4b584b;
  text-decoration: none;
}

.footer-link-list a i,
.footer-link-button i {
  width: 17px;

  color: #6a7769;

  text-align: center;

  flex: 0 0 17px;
}

.footer-link-list a:hover,
.footer-link-list a:focus,
.footer-link-button:hover,
.footer-link-button:focus {
  color: #2c4e28;
  text-decoration: none;

  transform: translateX(3px);
}

.footer-link-list a:hover i,
.footer-link-list a:focus i,
.footer-link-button:hover i,
.footer-link-button:focus i {
  color: #2c4e28;
}

.footer-link-button {
  margin: 0;
}

.footer-logout-link {
  margin-top: 4px;
}


/* =========================================================
   SECURE PAYMENTS
   ========================================================= */

.footer-payment-provider {
  display: flex;
  align-items: center;
  gap: 13px;

  margin: 18px 0;
  padding: 13px 15px;

  background: #ffffff;

  border: 1px solid #d9dfd7;
  border-radius: 8px;
}

.footer-payment-provider > i {
  color: #635bff;
  font-size: 2.2rem;
  line-height: 1;
}

.footer-payment-provider div {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.footer-payment-provider strong {
  color: #334033;

  font-size: 0.9rem;
  line-height: 1.3;
}

.footer-payment-provider span {
  color: #6c756c;

  font-size: 0.76rem;
  line-height: 1.35;
}

.footer-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;

  margin-bottom: 14px;
}

.footer-payment-icons > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 49px;
  height: 36px;
  padding: 0 8px;

  color: #424b42;
  background: #ffffff;

  border: 1px solid #d6ddd4;
  border-radius: 6px;

  font-size: 1.75rem;
  line-height: 1;
}

.footer-wallet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-wallet-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 9px;

  color: #4c574c;
  background: #ffffff;

  border: 1px solid #d6ddd4;
  border-radius: 5px;

  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}


/* =========================================================
   BOTTOM COPYRIGHT BAR
   ========================================================= */

.footer-bottom {
  color: #dce5dc;
  background: #20361e;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
}

.footer-bottom p {
  margin: 0;

  font-size: 0.78rem;
  line-height: 1.5;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-links a {
  color: #e3ebe2;

  font-size: 0.78rem;
  line-height: 1.5;

  text-decoration: none;
}

.footer-legal-links a:link,
.footer-legal-links a:visited {
  color: #e3ebe2;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus {
  color: #ffffff;
  text-decoration: underline;
}


/* =========================================================
   SCREEN-READER-ONLY TEXT
   ========================================================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  white-space: nowrap;

  border: 0;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}


/* =========================================================
   MEDIUM DESKTOP / SMALL LAPTOP
   Keep all three sections on one row
   ========================================================= */

@media screen and (max-width: 1050px) {

  .footer-container {
    grid-template-columns:
      minmax(210px, 1fr)
      minmax(150px, 0.7fr)
      minmax(240px, 1fr);

    grid-template-areas:
      "support explore payments";

    gap: 28px;

    width: min(100% - 32px, 1000px);
  }

  .footer-bottom-inner {
    width: min(100% - 32px, 1000px);
  }
}


/* =========================================================
   TABLET
   Support and Explore on top;
   Secure Payments underneath
   ========================================================= */

@media screen and (max-width: 760px) {

  .footer-container {
    grid-template-columns: 1fr 1fr;

    grid-template-areas:
      "support explore"
      "payments payments";

    gap: 38px 28px;

    width: min(100% - 32px, 720px);
    padding: 46px 0 42px;
  }

  .footer-payments {
    padding-top: 4px;
  }

  .footer-bottom-inner {
    width: min(100% - 32px, 720px);
  }
}


/* =========================================================
   MOBILE
   One section per row
   ========================================================= */

@media screen and (max-width: 620px) {

  .site-footer {
    margin-top: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;

    grid-template-areas:
      "support"
      "explore"
      "payments";

    gap: 36px;

    width: min(100% - 32px, 520px);
    padding: 42px 0 38px;
  }

  .footer-primary-button {
    width: 100%;
    box-sizing: border-box;
  }

  .footer-payment-icons {
    gap: 8px;
  }

  .footer-payment-icons > span {
    min-width: 45px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    width: min(100% - 32px, 520px);
  }

  .footer-legal-links {
    gap: 16px;
  }
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 8px 0 12px 0;

    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.auth-form .remember-row input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;

    min-width: 14px;
    max-width: 14px;

    padding: 0 !important;
    margin: 0;

    border-radius: 3px;
    cursor: pointer;
}

.remember-row span {
    line-height: 1.2;
}

.session-name-feature {
  align-items: flex-start;
  gap: 14px;

  margin: 16px 0 30px 0;
  padding: 18px 20px;

  background: linear-gradient(135deg, #fffaf3, #eafff4);
  border: 1px solid rgba(35, 77, 63, 0.16);
  border-left: 6px solid #2f6f57;
  border-radius: 14px;

  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.session-name-icon {
  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  border-radius: 50%;
  background: #99ffcc;
  color: #234d3f;

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

  font-size: 20px;
  font-weight: 800;

  box-shadow: 0 5px 14px rgba(47, 111, 87, 0.18);
}

.session-name-content {
  flex: 1;
}

.session-name-feature .session-name-label {
  display: block;

  margin-bottom: 2px;

  font-size: 1rem;
  font-weight: 800;
  color: #234d3f;
}

.session-name-help {
  margin-bottom: 10px;

  font-size: 0.88rem;
  line-height: 1.35;
  color: #4b5f56;
}

.session-name-input {
  max-width: 280px;
  height: 38px;
}

.session-name-hint {
  margin-top: 7px;
  font-size: 0.78rem;
  color: #64748b;
}

.session-quantity-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.session-quantity-row label {
	margin: 0;
}

.session-quantity-input {
	width: 4rem;
	max-width: 4rem;
}

@media (max-width: 600px) {
  .session-name-feature {
    flex-direction: row;
    padding: 16px;
  }

  .session-name-input {
    max-width: 100%;
  }
}



/* GET STARTED PAGE */
.getstarted-page {
  width: min(90vw, 1100px);
  margin: 90px auto 60px auto;
}

.getstarted-hero {
  text-align: center;
  margin-bottom: 34px;
  padding: 38px 30px;

  background: linear-gradient(135deg, #fffaf3, #eafff4);
  border: 1px solid rgba(35, 77, 63, 0.12);
  border-radius: 26px;

  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.getstarted-hero h1 {
  margin: 0 0 14px 0;
  color: #234d3f;
  font-family: "Nanum Myeongjo", serif;
  font-size: 2.35rem;
}

.getstarted-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: #4b5f56;
  font-size: 1.08rem;
  line-height: 1.6;
}

.getstarted-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;

  margin-bottom: 30px;
  padding: 28px;

  background: #ffffff;
  border: 1px solid rgba(35, 77, 63, 0.10);
  border-radius: 24px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.055);
}

.getstarted-text h2 {
  margin: 8px 0 12px 0;
  color: #234d3f;
  font-size: 1.65rem;
}

.getstarted-text p {
  color: #4b5f56;
  font-size: 1.02rem;
  line-height: 1.62;
}

.getstarted-step {
  display: inline-block;

  padding: 5px 13px;

  background: #99ffcc;
  color: #234d3f;

  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.getstarted-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.getstarted-image {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  object-position: center;

  border-radius: 20px;
  border: 1px solid #e5e7eb;

  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

.getstarted-final-cta {
  margin-top: 38px;
  padding: 32px 26px;

  text-align: center;

  background: linear-gradient(135deg, #eafff4, #fffaf3);
  border: 1px solid rgba(35, 77, 63, 0.12);
  border-radius: 24px;

  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.getstarted-final-cta h2 {
  margin: 0 0 10px 0;
  color: #234d3f;
  font-size: 1.6rem;
}

.getstarted-final-cta p {
  max-width: 700px;
  margin: 0 auto 20px auto;
  color: #4b5f56;
  line-height: 1.6;
}

/* Mobile layout */
@media (max-width: 800px) {
  .getstarted-row,
  .getstarted-row.reverse {
    grid-template-columns: 1fr;
  }

  .getstarted-row.reverse .getstarted-image-wrap {
    order: 2;
  }

  .getstarted-row.reverse .getstarted-text {
    order: 1;
  }

  .getstarted-hero h1 {
    font-size: 1.85rem;
  }

  .getstarted-row {
    padding: 22px;
  }

  .getstarted-image {
    max-height: 260px;
  }
}

/* Dyna-Form */
.dynform-card {
    max-width: 900px;   /* wider for form engine */
    width: min(95vw, 900px);
}

/* Alerts (replace W3 panels) */
.alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-success {
  background-color: #e6f4ea;
  color: #1e7e34;
}

.alert-error {
  background-color: #fdecea;
  color: #b02a37;
}


.flash-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000001;
    width: min(92vw, 520px);
    text-align: center;
}

.flash {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.flash.success { background: #28a745; }
.flash.error { background: #dc3545; }
.flash.warning { background: #ffc107; color: black; }
.flash.info { background: #17a2b8; }



/* ===== ANIMATION ===== */
@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Readonly field styling */
.form-readonly {
  background-color: #f5f5f5;
  color: #555;
  cursor: not-allowed;
}

/* Better spacing between fields */
.form-group {
  width: 100%;
  text-align: left;
  display: block;
  margin-bottom: 12px;
}

.form-group + .form-group {
  margin-top: 16px;
}

/* Optional: more breathing room for larger inputs */
.form-group:has(textarea) {
  margin-bottom: 20px;
}

.form-group:has(.input-lg),
.form-group:has(.input-xl),
.form-group:has(.input-mx) {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  text-align: left;
  margin-bottom: 4px;
  font-size: 13px;
  color: #444;
  font-weight: 600;   /* 👈 makes labels bold */
}

/* For form length fields */
.form-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
}

.form-section-title {
  margin-top: 24px;   /* space above each title */
  margin-bottom: 12px; /* space below title before fields */
  font-size: 16px;
  font-weight: 700;
  color: #2f6fed;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.form-section {
  padding: 16px 18px;   /* 👈 THIS is what you want */
  border-radius: 8px;   /* optional: makes it look nicer */
  margin-bottom: 12px;  /* small separation between sections */
}

.form-section:nth-of-type(odd) {
  background: #DAE5F0;
}

.form-section:nth-of-type(even) {
  background: #E6E5C1;
}

.form-error {
  color: #d93025;
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.form-group.error {
  border-left: 4px solid #e74c3c;
  padding: 10px 12px 14px 12px;  /* 👈 adds bottom space */
  background-color: #fdecea;
  border-radius: 6px;            /* optional: softer look */
}


.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #d93025;
}

textarea.form-input {
  width: 100%;
  min-height: 80px;
  line-height: 1.5;
  resize: vertical;
}
.input-sm { max-width: 150px; }
.input-md { max-width: 400px; }
.input-lg { max-width: 500px; }
.input-xl { max-width: 600px; }
.input-mx { max-width: 100%; }
.input-tall {
  min-height: 180px;
}
textarea.input-sm { min-height: 60px; }
textarea.input-md { min-height: 90px; }
textarea.input-lg { min-height: 140px; }
textarea.input-xl { min-height: 200px; }
textarea.input-mx { min-height: 260px; }

/* For form file uploads */
.file-upload {
  position: relative;
  width: 100%;

  min-height: 240px;
  height: 240px;

  border: 2px dashed #c7c7c7;
  border-radius: 12px;
  background: #fafafa;

  display: block;

  transition: all 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.file-upload:hover {
  border-color: #4a90e2;
  background: #f0f6ff;
}

.file-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.file-label::before {
  content: "⬆️";
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.file-upload.dragover {
  border-color: #2f6fed;
  background: #eaf2ff;
}

.file-label {
  position: absolute;
  inset: 0;

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

  padding: 20px;

  font-size: 14px;
  color: #666;
  text-align: center;

  pointer-events: none;
}

.file-preview {
  position: absolute;
  top: 12px;
  left: 50%;

  width: 110px;
  height: 110px;

  transform: translateX(-50%);

  object-fit: cover;

  border-radius: 10px;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);

  display: none;
  z-index: 1;
}

.file-upload.has-image .file-preview {
  display: block;
}

.file-upload.has-image .file-label {
  display: none;           /* hide text when image shows */
}


.file-help-text {
    margin: 8px auto 0 auto;
    padding: 2px 10px;

    font-size: 0.80rem;
    color: #6b7280;

    background: #f8fafc;
    border-radius: 999px;
}

.file-field-wrap {
  width: 100%;
}

.file-field-wrap.input-sm { max-width: 150px; }
.file-field-wrap.input-md { max-width: 400px; }
.file-field-wrap.input-lg { max-width: 500px; }
.file-field-wrap.input-xl { max-width: 600px; }
.file-field-wrap.input-mx { max-width: 100%; }

.file-field-wrap .file-upload {
  width: 100%;
}

.file-field-wrap .file-help-text {
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

.file-client-error {
  width: 100%;
  margin-top: 7px;
  padding: 7px 10px;

  border: 1px solid #f1b5b5;
  border-radius: 7px;

  background: #fff1f1;
  color: #a12626;

  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.file-client-error[hidden] {
  display: none !important;
}

/* ===== FORM ACTION BUTTONS ===== */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 4px;
  margin-bottom: 16px;
}

.form-actions.top-actions {
  margin-bottom: 24px;
}

.form-btn-primary,
.form-btn-secondary {
  width: auto !important;
  padding: 8px 16px !important;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}

/* Submit */
.form-btn-primary {
  background: #2f6fed;
  color: white;
  border: none;
}

/* Save */
.form-btn-secondary {
  background: #f3f4f6;
  color: #333;
  border: 1px solid #d0d5dd;
}

.form-btn-primary:hover {
  background: #1e4fd1;
}

.form-btn-secondary:hover {
  background: #e5e7eb;
}


/* SESSION */
.session-name-row {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 10px 0 28px 0;
  padding: 12px 14px;

  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;

  flex-wrap: wrap;
}

.session-name-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.session-name-row input {
  width: 180px;
  height: 34px;

  border: 1px solid #cbd5e1;
  border-radius: 7px;

  padding: 6px 10px;

  font-size: 13px;
  background: #fff;

  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.session-name-row input:focus {
  border-color: #4a90e2;
  outline: none;

  box-shadow:
    0 0 0 3px rgba(74,144,226,0.12),
    inset 0 1px 2px rgba(0,0,0,0.04);
}

.session-row {
  display: flex;
  align-items: center;
  gap: 10px;   /* space between label and value */
}

.session-label {
  font-size: 0.95rem;
  color: #444;
}

.session-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2f6fed;
  margin-left: 6px;
}

.session-input {
  width: 4ch;
  text-align: center;
  font-weight: 600;
}

.session-display {
  display: inline-block;
  min-width: 4ch;
  padding: 8px 10px;
  background: #f5f5f5;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.session-list {
  margin-top: 18px;
}

.session-list-row {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.session-list-label {
  color: #777;
  font-weight: 500;
}

.session-list-link {
  color: #2f6fed;
  font-weight: 600;
  text-decoration: none;
}

.session-list-link:hover {
  text-decoration: underline;
}

.sessions-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sessions-table th,
.sessions-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.sessions-table th {
  background: #f3f4f6;
  font-weight: 700;
  text-align: center;
}


.session-table-link {
  color: #2f6fed;
  font-weight: 600;
  text-decoration: none;
}

.session-table-link:hover {
  text-decoration: underline;
}

.sessions-empty {
  text-align: center;
  color: #777;
  padding: 18px;
}

.session-action-btn,
.session-disabled-btn {
  display: inline-block;
  width: 90px;
  text-align: center;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.btn-inactive { background: #6EBD3A; }
.btn-inactive:hover { background: #4b5563; }

.btn-pending { background: #d97706; }
.btn-pending:hover { background: #b45309; }

.btn-active { background: #2563eb; }
.btn-active:hover { background: #1d4ed8; }

.btn-retry {
  background-color: #8B0000;
  color: white;
}

.btn-retry:hover {
  background-color: #6F0000;
  color: white;
}

.session-disabled-btn {
  background: #ccc;
  color: #666;
}

.session-guide {
  margin-top: 24px;
  padding-top: 16px;

  border-top: 1px solid #e5e7eb;

  font-size: 13px;
  color: #555;
}

.session-guide-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.session-guide-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-guide-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-badge {
  width: 68px;          /* 75% of 90px */
  text-align: center;

  padding: 4px 0;

  border-radius: 5px;

  font-size: 9px;       /* 75% of 12px */
  font-weight: 700;

  color: white;

  flex-shrink: 0;
}

.guide-badge.inactive {
  background: #6EBD3A;
}

.guide-badge.pending {
  background: #d97706;
}

.guide-badge.retry {
  background-color: #8B0000;
  color: white;
}

.guide-badge.active {
  background: #2563eb;
}

.guide-text {
  line-height: 1.4;
}


/* Small screen card-style table */
@media (max-width: 700px) {
  .sessions-table,
  .sessions-table thead,
  .sessions-table tbody,
  .sessions-table th,
  .sessions-table td,
  .sessions-table tr {
    display: block;
  }

	.sessions-table thead {
    display: none;
  	}

	.sessions-table tr {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
  	}

  .sessions-table td {
    border-bottom: none;
    padding: 6px 0;
  }

  .sessions-table td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: #444;
  }
}

/* Large CTA button */
.cta-button {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  margin-top: 12px;

  background-color: #2f6fed;
  color: white;

  text-decoration: none;   /* 🔥 removes underline */
}

/* Ensure ALL states stay clean */
.cta-button:link,
.cta-button:visited {
  color: white;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #1e4fd1;
  color: white;
  text-decoration: none;
}

.cta-button:active {
  transform: scale(0.98);
}

/* ANALYZE HTML */
.analyze-status-card {
  text-align: center;

  padding: 48px 24px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.06);

  max-width: 520px;
  margin: 40px auto;
}

.analyze-title {
  margin-top: 22px;

  font-size: 24px;
  font-weight: 700;

  color: #1e293b;
}

.analyze-subtitle {
  margin-top: 10px;

  font-size: 14px;
  color: #64748b;

  line-height: 1.5;
}

.analyze-spinner {
  width: 52px;
  height: 52px;

  margin: 0 auto;

  border: 4px solid #dbeafe;
  border-top: 4px solid #4a90e2;

  border-radius: 50%;

  animation: analyzeSpin 1s linear infinite;
}

.analyze-complete-icon {
  width: 64px;
  height: 64px;

  margin: 0 auto;

  border-radius: 50%;

  background: #22c55e;
  color: white;

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

  font-size: 32px;
  font-weight: 700;
}

.analyze-complete-card {
  border-color: #bbf7d0;
}

@keyframes analyzeSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Analysis (converse) pagesettings */
.analysis-page {
    max-width: 1050px;
    margin: 0 auto 2rem auto;
    padding: 96px 1rem 0 1rem;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.analysis-title {
    margin: 0;
    font-size: 2rem;
    color: #234d3f;
}

.analysis-subtitle {
    margin-top: 0.35rem;
    color: #666;
    font-size: 0.95rem;
}

.analysis-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.analysis-btn {
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    background: #2f6f57;
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.analysis-btn.secondary {
    background: #e8f0ec;
    color: #234d3f;
}

.analysis-btn:hover {
    opacity: 0.9;
}

.field-label-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    width: 100%;
    max-width: 100%;
}

.field-label {
    margin: 0;
    display: inline-block;
    line-height: 1.3;
}

.field-help-btn {
    flex: 0 0 auto !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 0 0 2px !important;
    padding: 0 !important;

    border: none;
    background: transparent;

    color: #245a4a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    position: relative;
    top: -0.45em;
}

.field-help-btn:hover {
    color: #2f6fed;
    background: transparent;
}

.field-help-popover {
    position: absolute;
    z-index: 3000;
    max-width: 280px;
    background: #ffffff;
    color: #2f2f2f;
    border: 1px solid #d9e6df;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-line;
}

.field-help-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 12px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #d9e6df;
    border-top: 1px solid #d9e6df;
    transform: rotate(45deg);
}

.followup-page {
    max-width: 950px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.followup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.followup-title {
    margin: 0;
    font-size: 2rem;
    color: #234d3f;
}

.followup-subtitle {
    margin-top: 0.35rem;
    color: #666;
    font-size: 0.95rem;
}

.followup-help-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.followup-help-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

.followup-help-btn {
    position: relative;
    top: -0.25em;
}

.chat-thread {
    margin-bottom: 1.5rem;
    padding-bottom: 240px;
}

.chat-empty {
    background: #ffffff;
    border: 1px solid #d9e6df;
    border-radius: 14px;
    padding: 1.2rem;
    color: #666;
    text-align: center;
}

.chat-row {
    display: flex;
    margin-bottom: 1rem;
}

.user-row {
    justify-content: flex-end;
}

.ai-row {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 78%;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    line-height: 1.55;
    font-size: 0.96rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.user-bubble {
    background: #2f6f57;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    background: #ffffff;
    color: #2f2f2f;
    border: 1px solid #d9e6df;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
    border-bottom-left-radius: 4px;
}

.ai-bubble h1,
.ai-bubble h2,
.ai-bubble h3 {
    color: #245a4a;
    margin-top: 1rem;
}

.ai-bubble ul,
.ai-bubble ol {
    padding-left: 1.4rem;
}

.chat-label {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.75;
    margin-bottom: 0.4rem;
}

.inquiry-panel {
    position: sticky;
    bottom: 0;

    background: #f8fafc;
    border: 1px solid #d9e6df;
    border-radius: 16px;

    padding: 1rem;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.06);
}

.inquiry-meta {
    text-align: right;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.followup-input {
    width: 100%;
    min-height: 100px;
    resize: vertical;

    border: 1px solid #cbd5e1;
    border-radius: 12px;

    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;

    box-sizing: border-box;
}

.followup-input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

.followup-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.7rem;
}

.followup-limit-message {
    font-size: 0.95rem;
    color: #b02a37;
    text-align: center;
    padding: 0.8rem;
}

.followup-wait-message {
    font-size: 0.95rem;
    color: #64748b;
    text-align: center;
    padding: 0.9rem;
    background: #f1f5f9;
    border: 1px solid #d9e6df;
    border-radius: 12px;
}

/* PRINT / EMAIL */
.output-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 5000;
}

.output-panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.output-panel {
    position: fixed;
    top: 0;
    right: 0;

    width: min(420px, 92vw);
    height: 100vh;

    background: #ffffff;
    box-shadow: -8px 0 30px rgba(0,0,0,0.22);

    padding: 1.25rem;

    transform: translateX(100%);
    transition: transform 0.25s ease;

    z-index: 5001;
    box-sizing: border-box;
    overflow-y: auto;
}

.output-panel.active {
    transform: translateX(0);
}

.output-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.output-panel-header h2 {
    margin: 0;
    color: #234d3f;
    font-size: 1.35rem;
}

.output-panel-close {
    border: none;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
    color: #64748b;
}

.output-option-section {
    border: 1px solid #d9e6df;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #ffffff;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.output-option-section h3 {
    margin-top: 0;
    color: #245a4a;
}

.output-radio-line {
    display: block;
    margin: 0.7rem 0;
    color: #334155;
    font-weight: 600;
}

.output-submit-btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.output-help-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.45;
}

.output-email-btn {
    min-width: 9rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.output-email-btn .email-btn-spinner {
    display: none;
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: emailBtnSpin 0.8s linear infinite;
}

.output-email-btn.is-loading .email-btn-spinner {
    display: inline-block;
}

.output-email-btn.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.output-button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

@keyframes emailBtnSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .followup-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-bubble {
        max-width: 92%;
    }

    .chat-thread {
        padding-bottom: 0;
        margin-bottom: 1rem;
    }

    .inquiry-panel {
        position: static;
        margin-top: 1rem;
    }

    .followup-title {
        font-size: 1.5rem;
    }
}

.home-hero-text {
    max-width: 760px;
}

.home-hero-text p {
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .home-hero-text {
        max-width: 100%;
    }

    .home-hero-text p {
        line-height: 1.35;
        font-size: 1rem;
    }
}

.tradition-card-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
}

.tradition-card-image {
    flex: 0 0 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tradition-card-image img {
    width: 160px !important;
    max-width: 160px;
    height: auto;
    display: block;
}

.tradition-card-text {
    flex: 1;
}

/* Stack image above text on smaller screens */
@media (max-width: 700px) {
    .tradition-card-body {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .tradition-card-image {
        flex: none;
    }

    .tradition-card-image img {
        width: 130px !important;
        max-width: 130px;
    }
}

/* DYNFORM FRIENDLY ADVICE MODAL */
.dynform-advice-modal {
  position: fixed;
  inset: 0;

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

  padding: 20px;

  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(4px);

  z-index: 2000000;
}

.dynform-advice-modal[hidden] {
  display: none !important;
}

.dynform-advice-card {
  position: relative;

  width: min(92vw, 520px);

  padding: 30px 28px 26px 28px;

  background: linear-gradient(135deg, #fffaf3, #eafff4);
  border: 1px solid rgba(35, 77, 63, 0.14);
  border-radius: 22px;

  box-shadow: 0 24px 70px rgba(0,0,0,0.25);

  text-align: center;
  animation: popIn 0.22s ease;
  z-index: 2000001;
}

.dynform-advice-close {
  position: absolute;
  top: 12px;
  right: 14px;

  border: none;
  background: transparent;

  font-size: 28px;
  line-height: 1;
  color: #64748b;

  cursor: pointer;
}

.dynform-advice-close:hover {
  color: #234d3f;
}

.dynform-advice-icon {
  width: 54px;
  height: 54px;

  margin: 0 auto 12px auto;

  border-radius: 50%;
  background: #99ffcc;
  color: #234d3f;

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

  font-size: 28px;

  box-shadow: 0 8px 20px rgba(47, 111, 87, 0.18);
}

.dynform-advice-card h2 {
  margin: 0 0 8px 0;
  color: #234d3f;
  font-size: 1.55rem;
}

.dynform-advice-intro {
  max-width: 420px;
  margin: 0 auto 16px auto;

  color: #4b5f56;
  line-height: 1.45;
}

.dynform-advice-list {
  margin: 0 0 22px 0;
  padding-left: 0;

  list-style: none;
  text-align: left;
}

.dynform-advice-list li {
  margin-bottom: 10px;
  padding: 10px 12px;

  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(35, 77, 63, 0.09);
  border-radius: 12px;

  color: #4b5f56;
  line-height: 1.4;
}

.dynform-advice-list strong {
  color: #234d3f;
}

.dynform-advice-button {
  border: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .dynform-advice-card {
    padding: 26px 20px 22px 20px;
  }

  .dynform-advice-card h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 700px) {
    .ayurveda-card-body {
        flex-direction: column-reverse;

    }
}

/* This fills left-to-right 
.home-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}*/

/* Large size 
.home-hero {
    position: relative;
    min-height: calc(100vh - 40px);
    overflow: hidden;

    margin: 84px 300px 20px 300px;
    border-radius: 18px;
}*/

.home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;

    width: min(90vw, 1200px);
    margin: 84px auto 20px auto;

    background-color: #fff2e6;
}

.home-hero-content {
    flex: 1;
    color: #2f2f2f;
    z-index: 1;
}

.hero-lead-sentence {
    display: inline-block;
    font-family: "Catamaran", Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #234d3f;
    margin-bottom: 0.25rem;
}

.home-hero-text p {
	 max-width: 560px;
    margin: 0;
    line-height: 1.55;
    font-family: "Catamaran", Arial, sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
}

.home-hero-image-wrap {
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-end;
}

.home-hero-img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;

    border-radius: 18px;
}

.home-hero-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
}

@media (max-width: 800px) {
    .home-hero {
        flex-direction: column-reverse;
        align-items: flex-start;

        width: calc(100vw - 24px);
        margin: 84px auto 20px auto;
        gap: 24px;
    }

    .home-hero-image-wrap {
        width: 100%;
        flex: none;
        justify-content: center;
    }

    .home-hero-img {
        max-width: 100%;
    }
}

/* RADIO buttons */
.radio-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
  margin-left: 1.25rem;   /* indent */
  align-items: center;
  width: 100%;
  max-width: none;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.radio-option input[type="radio"] {
  width: auto !important;
  height: auto !important;
  margin: 0;
  transform: none;
}
  
@media (max-width: 600px) {
  .radio-group {
    flex-wrap: wrap;
  }
}

/* HOW IT WORKS SECTION */
.how-it-works-section {
  width: min(90vw, 1200px);
  margin: 70px auto 60px auto;
  padding: 42px 28px;

  background: #fffaf3;
  border-radius: 24px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 34px;
}

.how-it-works-header h2 {
  margin: 0;
  font-family: "Nanum Myeongjo", serif;
  font-size: 2rem;
  color: #234d3f;
}

.how-it-works-header p {
  margin: 10px auto 0 auto;
  max-width: 560px;

  font-family: "Catamaran", Arial, sans-serif;
  font-size: 1.05rem;
  color: #5f6f67;
  line-height: 1.5;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.how-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 20px 24px 20px;

  text-align: center;

  border: 1px solid rgba(35, 77, 63, 0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.how-image-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 16px auto;

  border-radius: 50%;
  overflow: hidden;

  background: #eafff4;

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

.how-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

.how-step {
  display: inline-block;

  margin-bottom: 10px;
  padding: 4px 12px;

  background: #99ffcc;
  color: #234d3f;

  border-radius: 999px;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.how-card h3 {
  margin: 4px 0 10px 0;

  font-family: "Catamaran", Arial, sans-serif;
  font-size: 1.25rem;
  color: #234d3f;
}

.how-card p {
  margin: 0;

  font-family: "Catamaran", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #4b5f56;
}

.how-it-works-action {
  text-align: center;
  margin-top: 32px;
}

.how-start-btn {
  display: inline-block;

  padding: 12px 24px;

  background: #2f6f57;
  color: white;

  border-radius: 999px;

  font-family: "Catamaran", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;

  text-decoration: none;
}

.how-start-btn:hover {
  background: #245a4a;
  color: white;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 850px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works-section {
    width: calc(100vw - 24px);
    padding: 32px 18px;
  }

  .how-it-works-header h2 {
    font-size: 1.65rem;
  }
}


/* tutorial */
.tutorial-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  margin: 18px auto 30px auto;
}

.tutorial-badges span {
  display: inline-block;

  padding: 7px 13px;

  background: #eafff4;
  color: #234d3f;

  border: 1px solid rgba(35, 77, 63, 0.12);
  border-radius: 999px;

  font-size: 0.86rem;
  font-weight: 700;
}

.tutorial-card {
  max-width: 820px;
}

.tutorial-lead {
  text-align: center;
  max-width: 620px;
  margin: 14px auto 28px auto;
  color: #4b5f56;
  font-size: 1rem;
  line-height: 1.5;
}

.tutorial-final-cta {
  margin-top: 34px;
  padding: 28px 22px;

  text-align: center;

  background: linear-gradient(135deg, #fffaf3, #eafff4);
  border: 1px solid rgba(35, 77, 63, 0.12);
  border-radius: 22px;

  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.tutorial-final-cta h3 {
  margin: 0 0 8px 0;
  color: #234d3f;
  font-size: 1.45rem;
}

.tutorial-final-cta p {
  max-width: 620px;
  margin: 0 auto 18px auto;
  color: #4b5f56;
  line-height: 1.5;
}

.tutorial-final-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tutorial-support-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 34px;
  padding: 20px 22px;
  background: #f5f8f4;
  border: 1px solid #d5dfd3;
  border-left: 5px solid #2c4e28;
  border-radius: 10px;
}

.tutorial-support-icon {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: #2c4e28;
  border-radius: 50%;
  font-size: 1.25rem;
}

.tutorial-support-content {
  flex: 1;
  min-width: 0;
}

.tutorial-support-content h3 {
  margin: 0 0 5px;
  color: #263526;
  font-size: 1.05rem;
  font-weight: 600;
}

.tutorial-support-content p {
  margin: 0;
  color: #5a665a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tutorial-support-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: #ffffff;
  background: #2c4e28;
  border: 1px solid #2c4e28;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.tutorial-support-button:hover,
.tutorial-support-button:focus {
  color: #ffffff;
  background: #203b1e;
  border-color: #203b1e;
  text-decoration: none;
  transform: translateY(-1px);
}

.tutorial-support-button:focus-visible {
  outline: 3px solid rgba(44, 78, 40, 0.25);
  outline-offset: 2px;
}

@media screen and (max-width: 700px) {
  .tutorial-support-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
  }

  .tutorial-support-button {
    width: 100%;
  }
}

.secondary-start-btn {
  background: #d97706;
}

.secondary-start-btn:hover {
  background: #b45309;
}

.start-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.start-step-card {
  position: relative;
  background: #fffaf3;
  border: 1px solid rgba(35, 77, 63, 0.12);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.start-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
  border-color: rgba(47, 111, 87, 0.24);
}

.start-step-number {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #99ffcc, #d7fff0);
  color: #234d3f;
  box-shadow: 0 6px 14px rgba(47, 111, 87, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.start-step-card h3 {
  margin: 6px 0 10px 0;
  color: #234d3f;
  font-size: 1.25rem;
}

.start-step-card p {
  color: #4b5f56;
  font-size: 0.98rem;
  line-height: 1.5;
}

.start-snap-placeholder {
  margin: 18px auto;
  padding: 18px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.9rem;
}

.start-snap-img {
  display: block;
  max-width: 100%;
  margin: 18px auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}

.start-snap-picture {
  display: block;
  margin: 18px auto;
}

.start-snap-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}

.start-step-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.sample-btn {
  width: auto !important;
  min-width: 160px;
  padding-left: 16px;
  padding-right: 16px;
  white-space: nowrap;
}

.sample-notice {
  margin-bottom: 1rem;
  padding: 12px 16px;

  background: #eafff4;
  color: #234d3f;

  border: 1px solid rgba(35, 77, 63, 0.14);
  border-radius: 12px;

  font-size: 0.95rem;
  line-height: 1.45;
}

.sample-analysis-page {
  position: relative;
  overflow: hidden;
}

.sample-analysis-page::before {
  content: "SAMPLE";
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 7rem;
  font-weight: 800;
  letter-spacing: 0.5rem;
  color: rgba(180, 40, 40, 0.10);
  z-index: 999;
  pointer-events: none;
}

.sample-analysis-card {
  position: relative;
  overflow: hidden;
}

.sample-analysis-card::before {
  content: "SAMPLE";
  position: absolute;
  top: 55px;
  right: -90px;
  width: 320px;
  text-align: center;

  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.35rem;
  color: rgba(180, 40, 40, 0.18);

  background: rgba(255, 255, 255, 0.35);
  border-top: 2px solid rgba(180, 40, 40, 0.18);
  border-bottom: 2px solid rgba(180, 40, 40, 0.18);

  transform: rotate(35deg);
  z-index: 2;
  pointer-events: none;
}

.sample-watermark-section {
  position: relative;
  overflow: hidden;

  margin: 1.5rem 0;
  padding: 1rem 1.25rem;

  border-radius: 14px;
}

.sample-watermark-section::before {
  content: "SAMPLE";
  position: absolute;
  top: 55px;
  right: -90px;
  width: 320px;
  text-align: center;

  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.35rem;
  color: rgba(180, 40, 40, 0.18);

  background: rgba(255, 255, 255, 0.35);
  border-top: 2px solid rgba(180, 40, 40, 0.18);
  border-bottom: 2px solid rgba(180, 40, 40, 0.18);

  transform: rotate(35deg);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 760px) {
  .start-steps {
	grid-template-columns: 1fr;
  }
}

/* Terms of Service */
/* Terms of Service */
.terms-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-form .terms-group input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;

  min-width: 14px;
  max-width: 14px;

  padding: 0 !important;
  margin: 0.25rem 0 0 0;

  flex-shrink: 0;
  cursor: pointer;
}

.terms-group label {
  margin: 0;
  font-weight: 500;
}

.terms-group a {
  text-decoration: underline;
}

/* Terms of Service checkbox sizing */
.auth-form .terms-group input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;

  min-width: 14px;
  max-width: 14px;

  padding: 0 !important;
  margin: 0.25rem 0 0 0;

  flex-shrink: 0;
  cursor: pointer;
}

.wellness-disclaimer-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.auth-form .wellness-disclaimer-group input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;

  min-width: 14px;
  max-width: 14px;

  padding: 0 !important;
  margin: 0.25rem 0 0 0;

  flex-shrink: 0;
  cursor: pointer;
}

.wellness-disclaimer-group label {
  margin: 0;
  font-weight: 500;
}

/* Register Complete */
.email-confirm-box {
  margin-top: 18px;
  padding: 18px;
  background: #fffaf3;
  border: 1px solid rgba(35, 77, 63, 0.12);
  border-radius: 14px;
  text-align: center;
  color: #4b5f56;
  line-height: 1.5;
}

.email-confirm-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: #99ffcc;
  color: #234d3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* About */

.about-owner-card {
  padding: 20px;
}

.about-owner-photo-wrap {
  flex: 0 0 120px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-owner-photo {
  width: 110px;
  height: 110px;

  border-radius: 50%;
  object-fit: cover;
  object-position: center;

  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}

@media (max-width: 760px) {
  .about-owner-card {
    flex-direction: column;
    text-align: center;
  }

  .about-owner-photo-wrap {
    flex: none;
    width: auto;
  }

  .about-owner-text {
    text-align: left;
  }
}

.image-action-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.auth-form .image-action-btn {
  width: auto !important;
  height: auto !important;
  margin-top: 0 !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
}

.image-action-primary {
  background: #2C4E28;
  color: white;
}

.image-action-secondary {
  background: #eef3ec;
  color: #2C4E28;
  border: 1px solid #c9d8c5;
}

.image-action-row {
  z-index: 3;
}

.file-drop-message {
  z-index: 1;
}

.file-preview {
  z-index: 1;
}

/* ===== WEBCAM CAPTURE MODAL ===== */

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

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

  padding: 20px;

  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);

  z-index: 2000000;
}

.camera-modal[hidden] {
  display: none !important;
}

.camera-card {
  position: relative;

  width: min(94vw, 680px);
  max-height: 94vh;
  overflow-y: auto;

  padding: 24px;

  background: #ffffff;
  border-radius: 20px;

  text-align: center;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
}

.camera-card h2 {
  margin: 0 40px 6px;
  color: #234d3f;
  font-size: 1.5rem;
}

.camera-instructions {
  margin: 0 auto 16px;
  max-width: 520px;

  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

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

  width: 38px !important;
  height: 38px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: none !important;
  border-radius: 50% !important;

  background: transparent !important;
  color: #64748b !important;

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

  cursor: pointer;
  z-index: 5;
}

.camera-close:hover {
  background: #f1f5f9 !important;
  color: #234d3f !important;
}

.camera-view {
  position: relative;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #111827;
  border-radius: 16px;
}

#camera-video,
.camera-captured-preview {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: contain;

  background: #111827;
}

#camera-video[hidden],
.camera-captured-preview[hidden] {
  display: none !important;
}

.camera-captured-preview[hidden] {
  display: none !important;
}

.camera-view.photo-captured .camera-frame-guide {
  display: none;
}

.camera-frame-guide {
  position: absolute;
  inset: 8% 12%;

  border: 2px dashed rgba(255, 255, 255, 0.66);
  border-radius: 18px;

  pointer-events: none;
}

.camera-loading {
  position: absolute;
  inset: 0;

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

  background: rgba(15, 23, 42, 0.72);
  color: white;

  font-weight: 700;
}

.camera-loading[hidden] {
  display: none !important;
}

.camera-error {
  margin-top: 12px;
  padding: 10px 12px;

  background: #fdecea;
  border: 1px solid #f5c2c7;
  border-radius: 10px;

  color: #b02a37;
  font-size: 0.9rem;
  line-height: 1.4;
}

.camera-error[hidden] {
  display: none !important;
}

.camera-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 16px;
}

.auth-form .camera-action-btn,
.camera-action-btn {
  width: auto !important;
  min-width: 120px;

  height: 42px !important;
  margin: 0 !important;
  padding: 0 18px !important;

  border-radius: 999px !important;

  font-size: 0.9rem;
  font-weight: 700;

  cursor: pointer;
  box-sizing: border-box;
}

.camera-action-primary {
  border: 1px solid #2c4e28 !important;
  background: #2c4e28 !important;
  color: #ffffff !important;
}

.camera-action-primary:hover {
  background: #203f20 !important;
}

.camera-action-secondary {
  border: 1px solid #c9d8c5 !important;
  background: #eef3ec !important;
  color: #2c4e28 !important;
}

.camera-action-secondary:hover {
  background: #dfeade !important;
}

.camera-action-btn[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .camera-modal {
    padding: 10px;
  }

  .camera-card {
    width: 100%;
    padding: 20px 14px 16px;
    border-radius: 16px;
  }

  .camera-card h2 {
    font-size: 1.3rem;
  }

  .camera-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-form .camera-action-btn,
  .camera-action-btn {
    width: 100% !important;
  }
}
/* ===== IMAGE FIELD ACTION BUTTONS - PROFESSIONAL LAYOUT ===== */

.auth-form .image-action-btn,
.auth-form label.image-action-btn,
.auth-form button.image-action-btn {
  height: 42px !important;
  min-height: 42px !important;

  margin: 0 !important;
  padding: 0 16px !important;

  border-radius: 999px !important;
  border: 1px solid #c9d8c5 !important;

  background: #eef3ec !important;
  color: #2C4E28 !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  white-space: nowrap;
  text-decoration: none !important;
  box-sizing: border-box;
  cursor: pointer;
}

.auth-form label.image-action-btn {
  grid-column: 1 / -1;
  width: 220px !important;
  max-width: 100%;
  justify-self: center;

  background: #eef3ec !important;
  color: #2C4E28 !important;
  border-color: #c9d8c5 !important;
}

.auth-form button.image-action-btn {
  width: 100% !important;
}

.auth-form .image-action-btn:hover {
  background: #dfeade !important;
  color: #2C4E28 !important;
}


/* Mobile: clean stacked buttons */
.phone-btn-mobile-text {
  display: none;
}

.phone-btn-desktop-text {
  display: inline;
}

@media (max-width: 768px) {
  .auth-form label.image-action-btn {
    justify-self: stretch;
  }

  .phone-btn-desktop-text {
    display: none;
  }

  .phone-btn-mobile-text {
    display: inline;
  }
}

/* ===== FILE DROP ============= */
.file-drop-message {
  position: absolute;
  top: 22px;
  left: 16px;
  right: 16px;

  text-align: center;
  color: #475569;
  pointer-events: none;
}

.file-drop-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 5px;
  color: #2C4E28;
}

.file-drop-message strong {
  display: block;
  font-size: 0.92rem;
  color: #334155;
}

.file-drop-message span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #64748b;
}

.file-drop-mobile {
  display: none;
}

.file-upload.has-image .file-drop-message {
  display: none;
}

@media (max-width: 768px) {
  .file-drop-desktop {
    display: none;
  }

  .file-drop-mobile {
    display: block;
  }
}

/* ===== FINAL IMAGE ACTION LAYOUT ===== */

.image-action-row {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;

  width: auto !important;
  max-width: none !important;
  margin: 0 !important;

  box-sizing: border-box;
}

.auth-form .image-action-row .image-action-btn,
.auth-form .image-action-row label.image-action-btn,
.auth-form .image-action-row button.image-action-btn {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;

  padding-left: 10px !important;
  padding-right: 10px !important;

  box-sizing: border-box !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-form .image-action-row label.image-action-btn {
  grid-column: 1 / -1;
  width: 220px !important;
  max-width: 100% !important;
  justify-self: center;
}

@media (max-width: 768px) {
  .image-action-row {
    grid-template-columns: minmax(0, 1fr);
    left: 12px;
    right: 12px;

    width: auto !important;
    max-width: none !important;
  }

  .auth-form .image-action-row label.image-action-btn,
  .auth-form .image-action-row button.image-action-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .auth-form .image-action-row label.image-action-btn {
    justify-self: stretch;
  }

  .auth-form button.take-webcam-btn {
    display: none !important;
  }
}

/* ===== PHONE-CAPTURE QR MODAL ===== */

.phone-capture-modal {
  position: fixed;
  inset: 0;

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

  padding: 20px;

  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);

  z-index: 2000000;
}

.phone-capture-modal[hidden] {
  display: none !important;
}

.phone-capture-card {
  position: relative;

  width: min(94vw, 460px);
  max-height: 94vh;
  overflow-y: auto;

  padding: 26px;

  background: #ffffff;
  border-radius: 20px;

  text-align: center;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
}

.phone-capture-card h2 {
  margin: 0 40px 8px;

  color: #234d3f;
  font-size: 1.5rem;
}

.phone-capture-intro {
  margin: 0 auto 8px;

  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.phone-capture-field-label {
  min-height: 22px;
  margin-bottom: 14px;

  color: #2c4e28;
  font-size: 0.88rem;
  font-weight: 700;
}

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

  width: 38px !important;
  height: 38px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: none !important;
  border-radius: 50% !important;

  background: transparent !important;
  color: #64748b !important;

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

  cursor: pointer;
}

.phone-capture-close:hover {
  background: #f1f5f9 !important;
  color: #234d3f !important;
}

.phone-capture-qr {
  min-height: 244px;

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

  margin: 0 auto 14px;
  padding: 12px;

  background: #ffffff;
  border: 1px solid #d9e6df;
  border-radius: 16px;

  box-sizing: border-box;
}

.phone-capture-qr:empty {
  display: none;
}

.phone-capture-qr img,
.phone-capture-qr canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.phone-capture-loading {
  margin: 24px 0;
  padding: 14px;

  background: #f8fafc;
  border-radius: 12px;

  color: #475569;
  font-weight: 700;
}

.phone-capture-loading[hidden],
.phone-capture-error[hidden],
.phone-capture-waiting[hidden],
.phone-capture-countdown[hidden] {
  display: none !important;
}

.phone-capture-error {
  margin: 14px 0;
  padding: 11px 13px;

  background: #fdecea;
  border: 1px solid #f5c2c7;
  border-radius: 10px;

  color: #b02a37;
  font-size: 0.9rem;
  line-height: 1.4;
}

.phone-capture-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin-top: 12px;

  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.phone-capture-spinner {
  width: 18px;
  height: 18px;

  border: 3px solid #d9e6df;
  border-top-color: #2c4e28;
  border-radius: 50%;

  animation: phoneCaptureSpin 0.8s linear infinite;
}

@keyframes phoneCaptureSpin {
  to {
    transform: rotate(360deg);
  }
}

.phone-capture-countdown {
  margin: 8px 0 0;

  color: #64748b;
  font-size: 0.82rem;
}

.phone-capture-help {
  margin: 14px auto 0;

  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.phone-capture-actions {
  display: flex;
  justify-content: center;

  margin-top: 18px;
}

.auth-form .phone-capture-action-btn,
.phone-capture-action-btn {
  width: auto !important;
  min-width: 130px;

  height: 42px !important;
  margin: 0 !important;
  padding: 0 18px !important;

  border: 1px solid #c9d8c5 !important;
  border-radius: 999px !important;

  background: #eef3ec !important;
  color: #2c4e28 !important;

  font-size: 0.9rem;
  font-weight: 700;

  cursor: pointer;
  box-sizing: border-box;
}

.phone-capture-action-btn:hover {
  background: #dfeade !important;
}

.phone-capture-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin-top: 12px;
  padding: 11px 13px;

  background: #eafff4;
  border: 1px solid #b7dfc9;
  border-radius: 12px;

  color: #234d3f;
  font-size: 0.9rem;
  font-weight: 700;
}

.phone-capture-success[hidden] {
  display: none !important;
}

.phone-capture-success-icon {
  width: 24px;
  height: 24px;

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

  border-radius: 50%;
  background: #2c4e28;
  color: #ffffff;

  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .phone-capture-modal {
    padding: 10px;
  }

  .phone-capture-card {
    width: 100%;
    padding: 22px 16px 18px;
    border-radius: 16px;
  }

  .phone-capture-card h2 {
    font-size: 1.3rem;
  }

  .phone-capture-qr {
    min-height: 220px;
  }

  .auth-form .phone-capture-action-btn,
  .phone-capture-action-btn {
    width: 100% !important;
  }
}

/* ===== PHONE CAPTURE PAGE ===== */

.phone-page-wrapper {
  min-height: 100vh;

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

  padding: 88px 14px 30px;

  background: linear-gradient(
    135deg,
    #fffaf3,
    #eafff4
  );

  box-sizing: border-box;
}

.phone-page-card {
  width: min(100%, 520px);

  padding: 24px 18px;

  background: #ffffff;
  border: 1px solid rgba(35, 77, 63, 0.12);
  border-radius: 20px;

  text-align: center;

  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.phone-page-icon {
  width: 58px;
  height: 58px;

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

  margin: 0 auto 10px;

  border-radius: 50%;

  background: #eafff4;
  color: #234d3f;

  font-size: 28px;
}

.phone-page-card h1 {
  margin: 0 0 8px;

  color: #234d3f;
  font-size: 1.65rem;
}

.phone-page-intro {
  margin: 0 auto 12px;

  color: #4b5f56;
  line-height: 1.5;
}

.phone-page-field {
  display: inline-block;

  margin-bottom: 16px;
  padding: 5px 11px;

  background: #eef3ec;
  border-radius: 999px;

  color: #2c4e28;
  font-size: 0.8rem;
  font-weight: 700;
}

.phone-photo-input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.phone-photo-empty,
.phone-photo-preview-wrap {
  width: 100%;
  min-height: 290px;

  margin-bottom: 16px;

  border: 2px dashed #c9d8c5;
  border-radius: 16px;

  background: #fafcf9;

  box-sizing: border-box;
}

.phone-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 24px;

  color: #64748b;
}

.phone-photo-empty-icon {
  width: 48px;
  height: 48px;

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

  margin-bottom: 8px;

  border-radius: 50%;

  background: #eef3ec;
  color: #2c4e28;

  font-size: 28px;
}

.phone-photo-empty strong {
  color: #334155;
}

.phone-photo-empty span {
  display: block;

  max-width: 310px;
  margin-top: 5px;

  font-size: 0.84rem;
  line-height: 1.4;
}

.phone-photo-preview-wrap {
  overflow: hidden;

  background: #111827;
}

.phone-photo-empty[hidden],
.phone-photo-preview-wrap[hidden] {
  display: none !important;
}

.phone-photo-preview {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 290px;
  max-height: 440px;

  object-fit: contain;
}

.phone-photo-error {
  margin-bottom: 14px;
  padding: 10px 12px;

  background: #fdecea;
  border: 1px solid #f5c2c7;
  border-radius: 10px;

  color: #b02a37;
  font-size: 0.88rem;
  line-height: 1.4;
}

.phone-photo-error[hidden] {
  display: none !important;
}

.phone-page-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.phone-page-button {
  width: 100%;
  min-height: 46px;

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

  margin: 0;
  padding: 10px 15px;

  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;

  cursor: pointer;
  box-sizing: border-box;
}

.phone-page-button-primary {
  border: 1px solid #2c4e28;
  background: #2c4e28;
  color: #ffffff;
}

.phone-page-button-secondary {
  border: 1px solid #c9d8c5;
  background: #eef3ec;
  color: #2c4e28;
}

.phone-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.phone-page-button[hidden] {
  display: none !important;
}

.phone-page-privacy,
.phone-page-help {
  margin: 16px auto 0;

  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.phone-page-unavailable {
  margin-top: 18px;
  padding: 15px;

  background: #fff4e5;
  border: 1px solid #f1d3a7;
  border-radius: 12px;

  color: #7c4a03;
  line-height: 1.45;
}

.phone-close-page {
	  margin-top: 16px;
}
	
.phone-close-instructions {
	  margin: 12px 0 0;
	  color: #64748b;
	  font-size: 0.82rem;
	  line-height: 1.4;
}
	
.phone-close-instructions[hidden] {
	  display: none !important;
}
	
.phone-upload-success[hidden] {
  		display: none !important;
}

#phone-page-icon[hidden],
#phone-page-title[hidden],
#phone-page-intro[hidden],
#phone-page-field-instruction[hidden],
#phone-page-privacy[hidden],
#phone-capture-form[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
	.phone-page-wrapper {
	  padding: 24px 14px 30px;
	}

  .phone-page-card {
    padding: 20px 13px;
    border-radius: 16px;
  }

  .phone-photo-empty,
  .phone-photo-preview-wrap {
    min-height: 250px;
  }

  .phone-photo-preview {
    min-height: 250px;
  }
  

}

/* ====== SUPPORT PAGE ====== */
.support-page {
  min-height: 70vh;
  padding: 56px 20px;
  background:
    linear-gradient(
      180deg,
      rgba(44, 78, 40, 0.08),
      rgba(255, 255, 255, 0)
    );
}

.support-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px;
  background: #ffffff;
  border: 1px solid #dfe5df;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 40, 20, 0.10);
}

.support-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e9e5;
}

.support-heading h1 {
  margin: 0 0 8px;
  color: #243324;
  font-size: 2rem;
  font-weight: 600;
}

.support-heading p {
  margin: 0;
  color: #5d675d;
  font-size: 1rem;
  line-height: 1.6;
}

.support-icon {
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: #2c4e28;
  border-radius: 50%;
  font-size: 1.4rem;
}

.support-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.support-form-group {
  margin-bottom: 22px;
}

.support-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #293629;
  font-size: 0.95rem;
  font-weight: 600;
}

.required-mark {
  color: #a32929;
}

.support-form-group input,
.support-form-group select,
.support-form-group textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  color: #263026;
  background: #ffffff;
  border: 1px solid #bfc8bf;
  border-radius: 7px;
  font: inherit;
  line-height: 1.4;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.support-form-group textarea {
  min-height: 190px;
  resize: vertical;
}

.support-form-group input:focus,
.support-form-group select:focus,
.support-form-group textarea:focus {
  outline: none;
  border-color: #2c4e28;
  box-shadow: 0 0 0 3px rgba(44, 78, 40, 0.15);
}

.support-field-note {
  margin-top: 7px;
  color: #687168;
  font-size: 0.85rem;
  line-height: 1.4;
}

.support-message-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 7px;
  color: #687168;
  font-size: 0.82rem;
  line-height: 1.4;
}

.support-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #e5e9e5;
}

.support-cancel-button,
.support-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.support-cancel-button {
  color: #354035;
  background: #ffffff;
  border: 1px solid #bfc8bf;
}

.support-cancel-button:hover {
  color: #243324;
  background: #f3f6f3;
}

.support-submit-button {
  gap: 9px;
  color: #ffffff;
  background: #2c4e28;
  border: 1px solid #2c4e28;
}

.support-submit-button:hover {
  background: #223e1f;
  border-color: #223e1f;
}

@media screen and (max-width: 700px) {
  .support-page {
    padding: 28px 12px;
  }

  .support-card {
    padding: 24px 18px;
    border-radius: 10px;
  }

  .support-heading {
    gap: 13px;
  }

  .support-heading h1 {
    font-size: 1.6rem;
  }

  .support-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .support-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .support-message-footer {
    flex-direction: column;
    gap: 4px;
  }

  .support-actions {
    flex-direction: column-reverse;
  }

  .support-cancel-button,
  .support-submit-button {
    width: 100%;
  }
}


/* =========================================================
   TCM Wisdom / Historical Quotes
   ========================================================= */

.tcm-wisdom-section {
  position: relative;
  overflow: hidden;
  max-width: 1380px;
  margin: 48px auto 64px;
  padding: 58px 42px 52px;
  background:
    radial-gradient(
      circle at top left,
      rgba(181, 147, 82, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(44, 78, 40, 0.11),
      transparent 38%
    ),
    linear-gradient(135deg, #f8f5ec 0%, #f2eee2 100%);
  border: 1px solid rgba(77, 92, 58, 0.22);
  border-radius: 4px;
  box-shadow: 0 14px 38px rgba(31, 47, 28, 0.11);
}

/* Very subtle decorative circle */
.tcm-wisdom-section::before {
  content: "";
  position: absolute;
  top: -115px;
  right: -95px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(44, 78, 40, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.tcm-wisdom-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.tcm-wisdom-heading h2 {
  margin: 4px 0 0;
  color: #263c24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: 0.015em;
}

.tcm-wisdom-eyebrow {
  margin: 0;
  color: #956f32;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.tcm-wisdom-symbol {
  color: rgba(44, 78, 40, 0.65);
  font-size: 1.45rem;
}

.tcm-wisdom-intro {
  max-width: 720px;
  margin: 18px auto 38px;
  color: #5c6255;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.tcm-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tcm-quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 275px;
  margin: 0;
  padding: 40px 30px 30px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(69, 88, 55, 0.18);
  border-top: 3px solid rgba(149, 111, 50, 0.7);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(37, 54, 33, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tcm-quote-card:hover {
  transform: translateY(-4px);
  border-color: rgba(44, 78, 40, 0.34);
  box-shadow: 0 13px 28px rgba(37, 54, 33, 0.12);
}

.tcm-quote-card-featured {
  background:
    linear-gradient(
      145deg,
      rgba(44, 78, 40, 0.97),
      rgba(29, 58, 28, 0.97)
    );
  border-color: rgba(44, 78, 40, 0.8);
  border-top-color: #c6a35f;
  box-shadow: 0 12px 30px rgba(31, 57, 29, 0.2);
}

.tcm-quote-mark {
  position: absolute;
  top: 10px;
  left: 22px;
  color: rgba(149, 111, 50, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.25rem;
  line-height: 1;
}

.tcm-quote-card-featured .tcm-quote-mark {
  color: rgba(226, 199, 139, 0.23);
}

.tcm-quote-card blockquote {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  margin: 18px 0 28px;
  color: #344232;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.65;
  text-align: center;
}

.tcm-quote-card-featured blockquote {
  color: #faf7ee;
}

.tcm-quote-card figcaption {
  position: relative;
  z-index: 1;
  display: block;
  padding-top: 18px;
  border-top: 1px solid rgba(77, 92, 58, 0.16);
  text-align: center;
}

.tcm-quote-card-featured figcaption {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.tcm-quote-source,
.tcm-quote-description {
  display: block;
}

.tcm-quote-source {
  color: #435a3e;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tcm-quote-card-featured .tcm-quote-source {
  color: #e0c181;
}

.tcm-quote-description {
  margin-top: 5px;
  color: #74796e;
  font-size: 0.82rem;
  line-height: 1.4;
}

.tcm-quote-card-featured .tcm-quote-description {
  color: rgba(255, 255, 255, 0.72);
}

.tcm-wisdom-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 280px;
  margin: 38px auto 0;
}

.tcm-wisdom-footer span:not(.tcm-wisdom-footer-symbol) {
  display: block;
  width: 90px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(149, 111, 50, 0.58)
  );
}

.tcm-wisdom-footer span:last-child {
  background: linear-gradient(
    to left,
    transparent,
    rgba(149, 111, 50, 0.58)
  );
}

.tcm-wisdom-footer-symbol {
  color: #956f32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

/* Tablet */
@media (max-width: 900px) {
  .tcm-wisdom-section {
    margin: 36px 16px 50px;
    padding: 48px 26px 42px;
  }

  .tcm-quote-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
  }

  .tcm-quote-card {
    min-height: auto;
  }

  .tcm-quote-card-featured {
    order: -1;
  }
}

/* Phone */
@media (max-width: 520px) {
  .tcm-wisdom-section {
    margin: 28px 10px 42px;
    padding: 40px 18px 36px;
  }

  .tcm-wisdom-heading {
    gap: 9px;
  }

  .tcm-wisdom-heading h2 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .tcm-wisdom-symbol {
    font-size: 1rem;
  }

  .tcm-wisdom-intro {
    margin-bottom: 28px;
    font-size: 0.94rem;
  }

  .tcm-quote-card {
    padding: 35px 22px 25px;
  }

  .tcm-quote-card blockquote {
    font-size: 1.08rem;
  }
}

/* Respect visitors who disable motion */
@media (prefers-reduced-motion: reduce) {
  .tcm-quote-card {
    transition: none;
  }

  .tcm-quote-card:hover {
    transform: none;
  }
}

/* ===== PASSWORD POLICY ===== */
.password-policy {
  margin: 4px 0 18px;
  padding: 14px 16px;
  background: #f6f8f5;
  border: 1px solid #d8e0d5;
  border-left: 4px solid #2c4e28;
  border-radius: 8px;
  color: #3f4d3f;
}

.password-policy-heading {
  margin-bottom: 4px;
  color: #253725;
  font-size: 0.9rem;
  font-weight: 700;
}

.password-policy-intro {
  margin: 0 0 9px;
  color: #596559;
  font-size: 0.8rem;
  line-height: 1.45;
}

.password-policy-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.password-policy-list li {
  margin: 2px 0;
}

.password-policy-list li.is-valid {
  color: #236b35;
  font-weight: 600;
}

.password-policy-list li.is-valid::marker {
  content: "✓  ";
}

.password-character-count {
	text-align: right;
	margin-top: 4px;
	color: #6b7280;
	font-size: 0.75rem;
	line-height: 1.3;
}

/* =========================================================
   ACCOUNT PAGE
   ========================================================= */

.account-page {
	width: min(92vw, 900px);
	margin: 96px auto 60px;
}

.account-header {
	margin-bottom: 24px;
}

.account-header h1 {
	margin: 0 0 6px;
	color: #234d3f;
	font-family: "Nanum Myeongjo", serif;
	font-size: 2rem;
}

.account-header p {
	margin: 0;
	color: #647064;
	line-height: 1.55;
}

.account-grid {
	display: grid;
	gap: 22px;
}

.account-card {
	padding: 24px;
	background: #ffffff;
	border: 1px solid rgba(35, 77, 63, 0.12);
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.account-card-heading {
	margin-bottom: 20px;
}

.account-card-heading h2 {
	margin: 0 0 5px;
	color: #234d3f;
	font-size: 1.25rem;
}

.account-card-heading p {
	margin: 0;
	color: #6b746b;
	font-size: 0.9rem;
	line-height: 1.5;
}

.account-detail-row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-top: 1px solid #e8ece7;
}

.account-detail-label {
	color: #596459;
	font-weight: 600;
}

.account-detail-value {
	color: #263526;
	overflow-wrap: anywhere;
	text-align: right;
}

.account-password-form {
	max-width: 560px;
	padding: 0;
}

.password-character-count {
	margin-top: 4px;
	color: #6b7280;
	font-size: 0.75rem;
	line-height: 1.3;
	text-align: right;
}

.account-form-actions {
	margin-top: 20px;
}

.account-form-actions button {
	width: auto !important;
	min-width: 170px;
}

.account-card-future {
	background: #f8faf7;
}

.account-coming-soon {
	padding: 16px;
	color: #637063;
	background: #ffffff;
	border: 1px dashed #cdd6cb;
	border-radius: 10px;
	font-size: 0.9rem;
	line-height: 1.55;
}

@media (max-width: 600px) {
	.account-page {
		width: min(94vw, 560px);
		margin-top: 84px;
	}

	.account-card {
		padding: 20px 16px;
	}

	.account-detail-row {
		flex-direction: column;
		gap: 4px;
	}

	.account-detail-value {
		text-align: left;
	}

	.account-form-actions button {
		width: 100% !important;
	}
}


/* =========================================================
   DISABLED ACCOUNT DIALOG
   ========================================================= */

.disabled-account-dialog {
	position: fixed;
	inset: 0;
	margin: auto;

	width: min(92vw, 500px);
	max-height: fit-content;

	padding: 0;

	background: #ffffff;

	border: 0;
	border-radius: 12px;

	box-shadow: 0 18px 55px rgb(0 0 0 / 30%);
}

.disabled-account-dialog::backdrop {
	background: rgb(0 0 0 / 55%);
}

.disabled-account-dialog-content {
	padding: 1.75rem;
	text-align: center;
}

.disabled-account-dialog-icon {
	margin-bottom: 0.75rem;

	color: #9b2424;

	font-size: 2.5rem;
	line-height: 1;
}

.disabled-account-dialog h2 {
	margin: 0 0 0.75rem;

	color: #7e1f1f;
}

.disabled-account-dialog p {
	margin: 0.65rem 0;

	line-height: 1.5;
}

.disabled-account-dialog-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;

	gap: 0.75rem;

	margin-top: 1.4rem;
}

.disabled-account-support-button,
.disabled-account-close-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 0.65rem 1rem;

	border-radius: 6px;

	font: inherit;
	font-weight: 700;

	text-decoration: none;
	cursor: pointer;
}

.disabled-account-support-button {
	color: #ffffff;
	background: #2c4e28;

	border: 1px solid #2c4e28;
}

.disabled-account-support-button:link,
.disabled-account-support-button:visited {
	color: #ffffff;
	text-decoration: none;
}

.disabled-account-support-button:hover,
.disabled-account-support-button:focus {
	color: #ffffff;
	background: #213d1f;
	border-color: #213d1f;

	text-decoration: none;
}

.disabled-account-close-button {
	color: #25313a;
	background: #ffffff;

	border: 1px solid #8b949b;
}

.disabled-account-close-button:hover,
.disabled-account-close-button:focus {
	background: #f1f3f4;
	border-color: #667078;
}

.disabled-account-support-button:focus-visible,
.disabled-account-close-button:focus-visible {
	outline: 3px solid rgb(44 78 40 / 25%);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.disabled-account-dialog-content {
		padding: 1.4rem;
	}

	.disabled-account-dialog-actions {
		flex-direction: column;
	}

	.disabled-account-support-button,
	.disabled-account-close-button {
		width: 100%;
		box-sizing: border-box;
	}
}


