


/* =========================================================
   COMMON
========================================================= */

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
}


/* Global header is provided by css/header.css and injected by js/header.js. */


/* =========================================================
   INTRO
========================================================= */

.intro {
  padding: 70px 0 42px;
}

.intro h1 {
  margin: 0;

  font-size: clamp(54px, 8vw, 92px);
  line-height: 0.94;

  font-weight: 850;
  letter-spacing: -5px;

  color: #f5f5f5;
}

.intro h1 span {
  color: var(--lime);
}

.intro p {
  max-width: 650px;

  margin: 28px 0 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.65;
}


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

.form-card {
  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 24px;

  padding: 38px;
}

.email-card {
  max-width: 100%;
}


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

.section {
  padding: 0 0 42px;
  margin-bottom: 42px;

  border-bottom: 1px solid #242424;
}

.section:last-child {
  border-bottom: 0;
}

.last-section {
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  margin-bottom: 30px;
}

.section-title h2 {
  margin: 0;

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

  letter-spacing: -0.8px;
}

.section-title p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 14px;
}


/* =========================================================
   FIELDS
========================================================= */

.vertical-fields {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.field {
  width: 100%;
}

.field label:not(.selection-option):not(.time-option):not(.same-phone):not(.terms):not(.float-field):not(.pill-check) {
  display: block;

  margin-bottom: 10px;

  color: #c4c4c4;

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

  letter-spacing: 2px;
  text-transform: uppercase;
}


/* =========================================================
   TEXT INPUTS
========================================================= */

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  display: block;

  width: 100%;

  padding: 17px 18px;

  color: #ffffff;
  background: #050505;

  border: 2px solid var(--border);
  border-radius: 17px;

  outline: none;

  font-size: 16px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}


/* =========================================================
   INPUT FOCUS
   SINGLE BORDER ONLY
========================================================= */

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus,
.field textarea:focus {
  border-color: var(--lime);

  outline: none;

  box-shadow: none;
}

.field input[type="text"]:focus-visible,
.field input[type="email"]:focus-visible,
.field input[type="tel"]:focus-visible,
.field textarea:focus-visible {
  outline: none;
}


/* =========================================================
   PHONE INPUT
========================================================= */

.phone-input {
  display: flex;
  align-items: stretch;

  width: 100%;

  background: #050505;

  border: 2px solid var(--border);
  border-radius: 17px;

  overflow: hidden;

  transition: border-color 0.2s ease;
}

.phone-input:focus-within {
  border-color: var(--lime);
}

.phone-input input {
  flex: 1;

  min-width: 0;

  border: 0 !important;
  border-radius: 0 !important;

  outline: none !important;
  box-shadow: none !important;

  background: transparent !important;
}

.country-code {
  display: flex;
  align-items: center;

  padding: 0 16px;

  color: #777777;

  font-size: 16px;

  border-right: 1px solid #282828;
}


/* =========================================================
   SAME AS PHONE
   CIRCULAR CHECKBOX
========================================================= */

.same-phone {
  display: flex !important;
  align-items: center;

  gap: 10px;

  margin-top: 11px;

  color: #8e8e8e !important;

  font-size: 13px !important;
  font-weight: 500 !important;

  letter-spacing: 0 !important;
  text-transform: none !important;

  cursor: pointer;
}

.same-phone input {
  appearance: none;
  -webkit-appearance: none;

  width: 19px;
  height: 19px;

  margin: 0;

  flex: 0 0 19px;

  border: 2px solid #414141;
  border-radius: 50%;

  background: #050505;

  position: relative;

  cursor: pointer;
}

.same-phone input:checked {
  border-color: var(--lime);
  background: var(--lime);
}

.same-phone input:checked::after {
  content: "";

  position: absolute;

  width: 5px;
  height: 9px;

  left: 5px;
  top: 2px;

  border-right: 2px solid #050505;
  border-bottom: 2px solid #050505;

  transform: rotate(45deg);
}


/* =========================================================
   GENDER / PREFERRED TUTOR
   BUTTON STYLE
========================================================= */

.selection-box {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;

  width: 100%;
}


/* Preferred Tutor = 3 columns */

.field:has(
  input[name="preferredTutor"]
) .selection-box {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}


/* Hide actual radio */

.selection-option input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}


/*
   BUTTON HEIGHT IS NOW BASED ON:
   TEXT + PADDING

   No large min-height.
*/

.selection-option {
  min-height: 0;

  display: flex !important;

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

  text-align: center;

  padding: 18px 12px;

  color: #d0d0d0;

  background: #050505;

  border: 2px solid var(--border);
  border-radius: 20px;

  font-size: 18px !important;
  font-weight: 750 !important;

  line-height: 1.2;

  letter-spacing: 0 !important;
  text-transform: none !important;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.selection-option:hover {
  border-color: #444444;
}


/* Selected */

.selection-option:has(input:checked) {
  color: #050505;

  background: var(--lime);

  border-color: var(--lime);
}


/* =========================================================
   STUDENT PREFERRED TIMING
   3 COLUMNS
========================================================= */

.timing-options {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 12px;

  width: 100%;
}


/*
   Timing buttons

   Height = text + padding.
*/

.time-option {
  position: relative;

  min-height: 0;

  display: flex !important;

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

  text-align: center;

  padding: 16px 10px;

  color: #d0d0d0;

  background: #050505;

  border: 2px solid var(--border);
  border-radius: 18px;

  font-size: 17px !important;
  font-weight: 750 !important;

  line-height: 1.2;

  letter-spacing: 0 !important;
  text-transform: none !important;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.time-option:hover {
  border-color: #444444;
}


/* Hide checkbox */

.time-option input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}


/* Selected timing */

.time-option:has(input:checked) {
  color: #050505;

  background: var(--lime);

  border-color: var(--lime);
}


/* =========================================================
   OTHER TIMING
========================================================= */

.other-time {
  margin-top: 13px;
}

.other-time input {
  width: 100%;

  padding: 16px 18px;

  color: #ffffff;
  background: #050505;

  border: 2px solid var(--border);
  border-radius: 16px;

  outline: none;
}

.other-time input:focus {
  border-color: var(--lime);

  outline: none;

  box-shadow: none;
}


/* =========================================================
   TERMS
   CIRCULAR CHECKBOX
========================================================= */

.terms {
  display: flex !important;
  align-items: flex-start;

  gap: 12px;

  cursor: pointer;

  color: #9a9a9a;

  font-size: 14px !important;
  line-height: 1.6;

  letter-spacing: 0 !important;
  text-transform: none !important;
}

.terms input {
  appearance: none;
  -webkit-appearance: none;

  width: 21px;
  height: 21px;

  flex: 0 0 21px;

  margin: 2px 0 0;

  background: #050505;

  border: 2px solid #444444;

  border-radius: 50%;

  position: relative;

  cursor: pointer;
}

.terms input:checked {
  background: var(--lime);

  border-color: var(--lime);
}

.terms input:checked::after {
  content: "";

  position: absolute;

  width: 6px;
  height: 10px;

  left: 5px;
  top: 2px;

  border-right: 2px solid #050505;
  border-bottom: 2px solid #050505;

  transform: rotate(45deg);
}

button.submit,
a.submit {
  width: 100%;

  min-height: 58px;

  display: flex;

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

  text-align: center;

  padding: 15px 22px;

  border: 0;
  border-radius: 16px;

  color: #050505;

  background: var(--lime);

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

  cursor: pointer;

  transition:
    background 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

button.submit:hover,
a.submit:hover {
  background: var(--lime-hover);
}

button.submit:active,
a.submit:active {
  transform: translateY(1px);
}

button.submit:disabled {
  cursor: not-allowed;

  opacity: 0.55;
}


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

.loader {
  width: 19px;
  height: 19px;

  border: 2px solid rgba(0, 0, 0, 0.25);

  border-top-color: #050505;

  border-radius: 50%;

  animation: spin 0.7s linear infinite;
}

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


/* =========================================================
   FIELD ERRORS
========================================================= */

.field-error {
  display: block;

  min-height: 18px;

  margin-top: 7px;

  color: var(--danger);

  font-size: 12px;

  line-height: 1.4;
}

.field-error.center {
  text-align: center;
}


/* =========================================================
   OTP PAGE
========================================================= */

.otp-card {
  max-width: 650px;

  margin: 0 auto;
}

.otp-input {
  text-align: center;

  font-size: 28px !important;
  font-weight: 800;

  letter-spacing: 8px;
}


/* =========================================================
   RESEND
========================================================= */

.resend-area {
  display: flex;

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

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 24px;

  color: #777777;

  font-size: 13px;
}


/* =========================================================
   SUCCESS
========================================================= */

.success-card {
  max-width: 650px;

  margin: 90px auto 0;

  text-align: center;
}

.success-card h1 {
  margin: 0;

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

  letter-spacing: -2px;
}

.registered-email {
  margin: 28px 0;

  padding: 16px 20px;

  background: #080808;

  border: 1px solid var(--border);

  border-radius: 15px;
}

.registered-email span {
  display: block;

  margin-bottom: 4px;

  color: #666666;

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

  letter-spacing: 2px;

  text-transform: uppercase;
}

.registered-email strong {
  color: #ffffff;

  word-break: break-word;
}

.login-button {
  margin-top: 20px;
}


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

.modal {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

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

  padding: 20px;
}

.modal-box {
  position: relative;

  z-index: 1;

  width: min(600px, 100%);
  max-height: 85vh;

  overflow-y: auto;

  padding: 35px;

  background: #101010;

  border: 1px solid #303030;

  border-radius: 22px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5);
}


/* =========================================================
   EMAIL PAGE
========================================================= */

.email-page .form-card {
  margin-top: 10px;
}


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

@media (max-width: 700px) {

  .container {
    width: min(100% - 28px, 900px);

    padding-top: 25px;
    padding-bottom: 55px;
  }


  /* HEADER */

  .site-header {
    padding-bottom: 28px;
  }


  /* INTRO */

  .intro {
    padding: 48px 0 30px;
  }

  .intro h1 {
    font-size: clamp(48px, 14vw, 72px);

    letter-spacing: -3.5px;
  }

  .intro p {
    font-size: 15px;
  }


  /* CARD */

  .form-card {
    padding: 25px 20px;

    border-radius: 20px;
  }


  /* SECTIONS */

  .section {
    padding-bottom: 32px;

    margin-bottom: 32px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .vertical-fields {
    gap: 24px;
  }


  /* =======================================================
     GENDER
     50 / 50
  ======================================================= */

  .selection-box {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }


  /* =======================================================
     PREFERRED TUTOR
     3 IN ONE LINE
  ======================================================= */

  .field:has(
    input[name="preferredTutor"]
  ) .selection-box {

    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 8px;
  }


  .selection-option {
    min-height: 0;

    padding: 14px 8px;

    border-radius: 17px;

    font-size: 16px !important;

    line-height: 1.2;
  }


  /* =======================================================
     TIMING
     3 COLUMNS
  ======================================================= */

  .timing-options {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 8px;
  }

  .time-option {
    min-height: 0;

    padding: 13px 6px;

    border-radius: 16px;

    font-size: 15px !important;

    line-height: 1.2;
  }


  /* OTP */

  .otp-input {
    font-size: 25px !important;

    letter-spacing: 6px;
  }


  /* SUCCESS */

  .success-card {
    margin-top: 40px;
  }

  .success-card h1 {
    font-size: 40px;
  }


  /* MODAL */

  .modal-box {
    padding: 28px 22px;
  }
}


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

@media (max-width: 400px) {

  .container {
    width: calc(100% - 22px);
  }

  .form-card {
    padding: 22px 16px;
  }


  /*
     No fixed heights.
     Height comes from text + padding.
  */

  .selection-option {
    min-height: 0;

    padding: 13px 6px;

    font-size: 15px !important;
  }

  .time-option {
    min-height: 0;

    padding: 12px 5px;

    font-size: 14px !important;
  }
}

/* =========================================================
   GLOBAL HEADER / FOOTER INTEGRATION
   Uses the same header and footer design as index.html.
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  margin: 0;
  padding: 0;
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  display: inline-block;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.site-header .logo span,
.footer .logo span {
  color: var(--lime);
}

.footer-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.footer-brand .logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.footer-brand p {
  margin-top: 7px;
  color: #777;
  font-size: 12px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Student profile modal */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.student-profile-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-profile-item.full {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .header-inner {
    width: calc(100% - 28px);
    min-height: 68px;
  }

  .site-header .logo {
    font-size: 20px;
  }

  .footer-container {
    width: calc(100% - 28px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links {
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .student-profile-content {
    grid-template-columns: 1fr;
  }

  .student-profile-item.full {
    grid-column: auto;
  }
}


/* Shared header/footer responsive sizing */
@media (max-width: 699px) {
  .header-inner,
  .footer-container {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 68px;
  }

  .logo {
    font-size: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links {
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}


/* =========================================================
   FORM REDESIGN OVERRIDES
   ---------------------------------------------------------
   These rules implement the simplified registration form:
   - Login / email area centered
   - Contact Information heading centered
   - Email field has no visible label
   - Change email button centered
   - Input fields work with placeholders instead of labels
========================================================= */

.email-section-title,
.centered-section-title {
  justify-content: center;
  text-align: center;
}

.email-page .field {
  text-align: center;
}

.email-page .field input[type="email"] {
  text-align: center;
}

.email-registration-field input {
  text-align: center;
}

.registrationPage .back-link,
#registrationPage .back-link {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/*
 * Field labels have been removed from the main text fields.
 * Their purpose is now served by clear placeholders and
 * aria-label attributes in the HTML.
 *
 * Interactive labels such as radio buttons, checkboxes,
 * gender, tutor preference and timing options are intentionally
 * NOT removed because they are part of the controls themselves.
 */


/* =========================================================
   USER REQUESTED FORM ALIGNMENT / LABEL CLEANUP
   ========================================================= */

#otpPage .back-link {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#otpPage .otp-header {
  text-align: center;
}

#otpPage .otp-header h2,
#otpPage .otp-header p {
  text-align: center;
}

#otpPage .otp-header strong {
  display: inline-block;
  text-align: center;
  word-break: break-word;
}

.medium-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

#registrationPage .centered-section-title {
  justify-content: center;
  text-align: center;
}

@media (max-width: 700px) {
  .medium-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}



/* =========================================================
   REGISTRATION FORM - NEW LOOK
   (same text boxes as "Add a Student" on the Student Profile)
========================================================= */

/* "Tell us about yourself." on one line, centred */
.registration-intro {
  text-align: center;
}

.intro h1.one-line-title {
  white-space: nowrap;
  font-size: clamp(26px, 7.2vw, 80px);
  letter-spacing: -0.04em;
}

@media (max-width: 760px) {
  .intro h1.one-line-title {
    font-size: clamp(24px, 8.4vw, 56px);
    letter-spacing: -0.035em;
  }
}


/* ---------- floating-label text boxes ----------
   The label sits inside the box. When the box is tapped or has
   text, it moves up onto the top border, left-aligned. */

.float-field {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}

.field .float-field input[type="text"],
.field .float-field input[type="email"],
.field .float-field input[type="tel"],
.field .float-field textarea {
  border-radius: 999px;
  padding: 18px 22px 16px;
}

.field .float-field.is-area textarea {
  border-radius: 24px;
  padding-top: 20px;
}

.float-field > span {
  position: absolute;
  left: 18px;
  top: 50%;
  max-width: calc(100% - 36px);
  padding: 0 5px;
  transform: translateY(-50%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #5c5c5c;
  pointer-events: none;
  border-radius: 4px;
  /* upper half = card colour, lower half = box colour, so the
     label cleanly covers the border line */
  background: linear-gradient(to bottom, var(--surface) 50%, #050505 50%);
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}

.float-field.is-area > span {
  top: 28px;
}

.float-field input:focus + span,
.float-field input:not(:placeholder-shown) + span,
.float-field textarea:focus + span,
.float-field textarea:not(:placeholder-shown) + span {
  top: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.float-field input:focus + span,
.float-field textarea:focus + span {
  color: var(--lime);
}

/* read-only email box keeps its darker look */
.float-field input[readonly] + span {
  background: linear-gradient(to bottom, var(--surface) 50%, #090909 50%);
}


/* ---------- mobile / WhatsApp: flag + floating label ---------- */

.phone-input {
  position: relative;
  border-radius: 999px;
  overflow: visible;
}

.phone-input .flag-code {
  padding: 0 14px 0 20px;
  border-right: 1px solid #282828;
}

.float-field.in-phone {
  flex: 1;
  min-width: 0;
}

.field .float-field.in-phone input[type="tel"] {
  padding: 18px 20px 16px 14px;
  border-radius: 0 999px 999px 0 !important;
}

.float-field.in-phone > span {
  left: 10px;
}

/* inside the phone box the border belongs to the outer box,
   2px above the input */
.float-field.in-phone input:focus + span,
.float-field.in-phone input:not(:placeholder-shown) + span {
  top: -2px;
}


/* ---------- "Same as Phone Number" - full-width pill ---------- */

.pill-check {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #050505;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pill-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-check-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  display: grid;
  place-items: center;
  color: #050505;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pill-check-icon svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pill-check:hover {
  border-color: var(--border-light);
}

.pill-check:has(input:checked) {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.1);
}

.pill-check input:checked ~ .pill-check-icon {
  background: var(--lime);
  border-color: var(--lime);
}

.pill-check input:checked ~ .pill-check-icon svg {
  opacity: 1;
}

.pill-check input:focus-visible ~ .pill-check-icon {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}


/* =========================================================
   MATCH "ADD A STUDENT" (Student Profile) - boxes, buttons
========================================================= */

/* ---------- text boxes: same size, border and colour ---------- */

.field .float-field input[type="text"],
.field .float-field input[type="email"],
.field .float-field input[type="tel"],
.field .float-field textarea {
  padding: 15px 20px 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 15px;
}

.field .float-field input[type="text"]:focus,
.field .float-field input[type="email"]:focus,
.field .float-field input[type="tel"]:focus,
.field .float-field textarea:focus {
  border-color: rgba(22, 163, 74, 0.35);
}

.float-field > span {
  left: 16px;
  font-size: 14.5px;
  color: #6f6f6f;
  background: linear-gradient(to bottom, var(--surface) 50%, var(--surface-2) 50%);
}

.float-field input:focus + span,
.float-field input:not(:placeholder-shown) + span,
.float-field textarea:focus + span,
.float-field textarea:not(:placeholder-shown) + span {
  font-size: 11.5px;
}

.float-field input[readonly] + span {
  background: linear-gradient(to bottom, var(--surface) 50%, #090909 50%);
}

/* mobile / WhatsApp box (flag + number) */
.phone-input {
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.phone-input:focus-within {
  border-color: rgba(22, 163, 74, 0.35);
}

.phone-input .flag-code {
  padding: 0 12px 0 18px;
}

.field .float-field.in-phone input[type="tel"] {
  padding: 15px 20px 13px 12px;
  border: 0 !important;
  background: transparent !important;
}

.float-field.in-phone input:focus + span,
.float-field.in-phone input:not(:placeholder-shown) + span {
  top: -1px;
}

.whatsapp-box {
  margin-top: 12px;
}


/* ---------- "WhatsApp same as mobile number" ---------- */

.pill-check {
  margin-top: 12px;
  padding: 11px 12px 11px 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}


/* ---------- choice buttons (gender, tutor, medium, timing) ----------
   Same pill shape as the text boxes, same size and font. */

.selection-box,
.timing-options {
  gap: 8px;
}

.selection-option,
.time-option {
  padding: 13px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px !important;
  font-weight: 600 !important;
}

.selection-option:hover,
.time-option:hover {
  border-color: var(--border-light);
}

.selection-option:has(input:checked),
.time-option:has(input:checked) {
  color: #050505;
  background: var(--lime);
  border-color: var(--lime);
}

.other-time input {
  padding: 15px 20px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 15px;
}


/* ---------- main buttons (Continue, Register, Verify ...) ---------- */

button.submit,
a.submit {
  min-height: 0;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}


/* ---------- Terms: justified text + verified-style tick ---------- */

.terms {
  align-items: center !important;
  gap: 14px;
}

/* the real checkbox stays for the form, but is invisible */
.terms input {
  position: absolute;
  width: 1px;
  height: 1px;
  flex: 0 0 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.terms-badge .seal {
  fill: transparent;
  stroke: #4a4a4a;
  stroke-width: 1.4;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
  transform-origin: 12px 12px;
}

.terms-badge .tick {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.25s ease 0.08s;
}

.terms:hover .terms-badge .seal {
  stroke: #6a6a6a;
}

.terms input:checked + .terms-badge .seal {
  fill: #1d9bf0;
  stroke: #1d9bf0;
  transform: scale(1.06);
}

.terms input:checked + .terms-badge .tick {
  stroke-dashoffset: 0;
}

.terms input:focus-visible + .terms-badge {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 50%;
}

.terms { position: relative; }


/* =========================================================
   SPACING, ERRORS, TIME PICKER, TERMS TICK
========================================================= */

/* ---------- same gap between every box ----------
   The gap between "Email Address" and "Enter Your Mobile Number"
   (27px) is used everywhere; empty error lines no longer add
   extra space. */

#registrationPage .field-error {
  display: none !important;
}

#registrationPage .pill-check,
#registrationPage .whatsapp-box,
#registrationPage .other-time {
  margin-top: 27px;
}


/* ---------- errors: light red border instead of text ---------- */

#registrationPage .field.has-error .float-field input,
#registrationPage .field.has-error .float-field textarea,
#registrationPage .field.has-error .phone-input,
#registrationPage .field.has-error .selection-option,
#registrationPage .field.has-error .time-option,
#registrationPage .field.has-error .other-time .float-field input {
  border-color: rgba(255, 104, 104, 0.65) !important;
}

#registrationPage .field.has-error .phone-input .float-field input {
  border: 0 !important;
}

#registrationPage .field.has-error .float-field > span {
  color: #ff9b9b;
}

#registrationPage .terms.has-error .terms-badge .seal {
  stroke: rgba(255, 104, 104, 0.75);
}


/* ---------- "Other" timing: a time picker ---------- */

.float-field.is-time input[type="time"] {
  display: block;
  width: 100%;
  padding: 15px 20px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: #ffffff;
  color-scheme: dark;
  font: inherit;
  font-size: 15px;
  text-align: center;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-height: 50px;
}

.float-field.is-time input[type="time"]::-webkit-date-and-time-value {
  text-align: center;
}

.float-field.is-time input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.6);
  cursor: pointer;
}

.float-field.is-time input[type="time"]:focus {
  border-color: rgba(22, 163, 74, 0.35);
}

/* label always on the top border, centred */
.float-field.is-time > span {
  top: 0 !important;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.float-field.is-time input:focus + span {
  color: var(--lime);
}

.terms input:checked + .terms-badge .seal {
  fill: var(--lime);
  stroke: var(--lime);
}

.terms-badge .tick {
  stroke: #050505;
}


/* =========================================================
   EMAIL PAGE + OTP PAGE - CLEAN LOOK
   (no card, same boxes and buttons as the registration form)
========================================================= */

/* one-line, centred headings ("Find your perfect tutor." /
   "Join as a tutor.") */
#emailPage .intro {
  text-align: center;
}

/* the card blends into the page: no border, no colour */
#emailPage .email-card,
#otpPage .otp-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#emailPage .email-card .section {
  padding: 0;
  margin: 0;
  border: 0;
}

/* labels on the page background */
#emailPage .float-field > span {
  background: linear-gradient(to bottom, var(--bg) 50%, var(--surface-2) 50%);
}

#emailPage .field .float-field input[type="email"] {
  padding: 15px 20px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 15px;
}

#emailPage .field .float-field input[type="email"]:focus {
  border-color: rgba(22, 163, 74, 0.35);
}

/* errors: light red border, no text (email + OTP pages) */
#emailPage .field-error,
#otpPage .field-error {
  display: none !important;
}

#emailPage .field.has-error .float-field input,
#otpPage .field.has-error .otp-input {
  border-color: rgba(255, 104, 104, 0.65) !important;
}

#emailPage .field.has-error .float-field > span {
  color: #ff9b9b;
}


/* ---------- OTP page: six centred lines ---------- */

#otpPage .container {
  text-align: center;
}

#otpPage .otp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 40px;
}

/* 1. Change Email */
#otpPage .back-link {
  margin: 0 0 6px;
}

/* 4. OTP box (same pill as the other boxes) */
#otpPage form {
  width: 100%;
}

#otpPage .field {
  position: relative;
}

#otpPage .otp-input {
  display: block;
  width: 100%;
  padding: 15px 20px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-align: center;
  outline: none;
}

#otpPage .otp-input::placeholder {
  letter-spacing: 0.02em;
  font-size: 15px;
  font-weight: 500;
  color: #6f6f6f;
}

#otpPage .otp-input:focus {
  border-color: rgba(22, 163, 74, 0.35);
}

/* spinner inside the OTP box while checking / saving */
#otpPage .field.is-busy::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.25);
  border-top-color: var(--lime);
  animation: spin 0.7s linear infinite;
}

#otpPage .field.is-busy .otp-input {
  opacity: 0.6;
}

/* 5. Resend OTP  6. Didn't receive the code? */
#otpPage .resend-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  text-align: center;
}

#otpPage .resend-area span {
  color: var(--muted);
  font-size: 13.5px;
}


/* ---------- registration: no double gap under the mobile box ---------- */

#registrationPage .field > .pill-check:first-child {
  margin-top: 0;
}


/* Email box: "Enter Your Email" centred inside the box and centred
   on the top edge once it moves up; the typed email is centred too. */
#emailPage .float-field > span {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#emailPage .field .float-field input[type="email"] {
  text-align: center;
}

.page {
  min-height: 0;
  flex: 0 0 auto;
}

#emailPage:not(.hidden):not([hidden]),
#otpPage:not(.hidden):not([hidden]) {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#emailPage .container,
#otpPage .container {
  padding: 32px 0 48px;
}

#emailPage .intro {
  padding: 28px 0 30px;
}

#otpPage .otp-card {
  padding-top: 0;
}


/* "Find your perfect tutor." is exactly as wide as the email box
   and Continue button (student-registration.js fits the font size; the value
   below is only the starting size / fallback). */
#emailPage .intro {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

#emailPage .intro h1.one-line-title {
  display: inline-block;
  font-size: clamp(22px, 8.2vw, 44px);
  letter-spacing: -0.04em;
}

/* ---- a parent editing a student's details (studentregistration.html?edit=1 - js/pages/student-edit.js) ----
   the same look as the tutor's Edit Profile: a note about the locked fields, a lock in each locked box */
.edit-note { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; padding: 12px 14px; border-radius: 0;
  background: rgba(249, 115, 22, .12); border-left: 3px solid #f97316; color: #fdba74; font-size: 13px; line-height: 1.5; text-align: center; }
html[data-theme="light"] .edit-note { background: #fff1e6; color: #9a3412; }
.edit-note span { flex: 1; }
.edit-note svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-editing .is-locked { position: relative; opacity: .62; }
.is-editing .is-locked input, .is-editing .is-locked label { cursor: not-allowed; }
.is-editing .has-lock { position: relative; }
.is-editing .lock-tag { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(249, 115, 22, .16); color: #f97316; pointer-events: none; z-index: 2; }
.is-editing .lock-tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.is-editing .pill-check .lock-tag { position: static; transform: none; margin-left: auto; margin-right: 8px; flex: none; }
.is-editing .pill-check .lock-tag + .pill-check-icon { margin-left: 0; }
.field .selection-option input:disabled, .field .pill-check input:disabled { opacity: 0; background: none; }
/* the address changed and there are brothers / sisters: the question, the tick, a hint */
.sib-field .sib-q { margin: 0 0 8px; font-size: 13px; font-weight: 600; text-align: center; color: var(--text, #e5e7eb); }
.sib-field .sib-hint { display: block; margin-top: 6px; font-size: 12px; text-align: center; color: var(--muted, #94a3b8); }
/* the details load before the form shows - never the login page in between */
html.edit-boot #emailPage { display: none !important; }
html.edit-boot #site-footer { visibility: hidden; }
html.edit-boot body::after { content: ""; position: fixed; left: 50%; top: 50%; z-index: 9999; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  border: 3px solid rgba(96, 165, 250, .25); border-top-color: #60a5fa; animation: editBootSpin .8s linear infinite; }
html.edit-boot body::before { content: "Opening the details..."; position: fixed; left: 0; right: 0; top: calc(50% + 26px); z-index: 9999; text-align: center;
  font-size: 13px; font-weight: 600; color: #94a3b8; }
@keyframes editBootSpin { to { transform: rotate(360deg); } }

/* =========================================================
   THE EMAIL STEP (studentregistration.html): how it works top left, the email in the middle, a WhatsApp chat and our
   numbers bottom right; an arrow from how it works to the email, then from the email to the chat - in turn
   ========================================================= */
#emailPage .container.rf { position: relative; width: min(1320px, calc(100% - 40px)); display: grid; grid-template-columns: 320px minmax(0, 1fr) 330px;
  grid-template-rows: auto auto; column-gap: 70px; row-gap: 0; }
.rf-main { grid-column: 2; grid-row: 1 / 3; align-self: center; min-width: 0; }
#emailPage .em-box { max-width: 100%; }
.rf-how { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 10px; }
.rf-talk { grid-column: 3; grid-row: 2; align-self: start; margin-top: 10px; }
.rf-card { position: relative; z-index: 1; box-sizing: border-box; padding: 20px 22px; border-radius: 22px; text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }
.rf-card svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rf-eye { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #22c55e; }
.rf-title { display: block; margin-top: 6px; font-size: 19px; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; color: var(--text, #f5f5f5); }
.rf-title em { font-style: normal; font-weight: 700; color: #22c55e; }

/* how it works: the three steps light up in turn, a line runs down them */
.rs-steps { position: relative; display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.rs-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: rgba(255, 255, 255, 0.08); }
.rs-steps::after { content: ""; position: absolute; left: 17px; top: 18px; width: 2px; height: 0; background: #22c55e; animation: rsLine 6s ease-in-out infinite; }
.rs-steps li { position: relative; display: flex; align-items: center; gap: 12px; }
.rs-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  color: #9a9aa3; background: #18181d; border: 1px solid rgba(255, 255, 255, 0.1); animation: rsStep 6s ease-in-out infinite; }
.rs-steps li:nth-child(2) i { animation-delay: 2s; }
.rs-steps li:nth-child(3) i { animation-delay: 4s; }
.rs-steps span { display: grid; }
.rs-steps b { font-size: 14px; color: var(--text, #f5f5f5); }
.rs-steps small { font-size: 12px; color: #9a9aa3; }
@keyframes rsStep { 0%, 30% { color: #ffffff; background: #16a34a; border-color: #16a34a; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18); } 40%, 100% { color: #9a9aa3; background: #18181d; border-color: rgba(255, 255, 255, 0.1); box-shadow: none; } }
@keyframes rsLine { 0% { height: 0; } 75%, 90% { height: calc(100% - 36px); } 100% { height: calc(100% - 36px); opacity: 0; } }


/* the chat: the parent asks, "typing...", we answer - again and again */
.rf-chat { display: grid; gap: 6px; height: 118px; margin: 14px 0 12px; padding: 10px; border-radius: 14px; align-content: start; overflow: hidden;
  background: #0b141a radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 14px 14px; }
.rf-chat p { position: relative; margin: 0; max-width: 86%; padding: 6px 9px 15px; border-radius: 9px; font-size: 12.5px; line-height: 1.35; color: #e9edef; opacity: 0; }
.rf-chat p > em { position: absolute; right: 7px; bottom: 2px; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 9.5px; color: #8696a0; }
.rf-chat p > em svg { width: 14px; height: 9px; stroke: #53bdeb; stroke-width: 1.6; }
.rf-chat .out { justify-self: end; background: #005c4b; border-top-right-radius: 2px; }
.rf-chat .in { justify-self: start; background: #202c33; border-top-left-radius: 2px; }
.rf-chat .typing { justify-self: start; display: flex; gap: 3px; padding: 8px 10px; background: #202c33; }
.rf-chat .typing i { width: 5px; height: 5px; border-radius: 50%; background: #8696a0; animation: rsDot 1s ease-in-out infinite; }
.rf-chat .typing i:nth-child(2) { animation-delay: 0.15s; } .rf-chat .typing i:nth-child(3) { animation-delay: 0.3s; }
.rf.is-go .rf-chat .out { animation: rfMsg 9s ease 3.4s infinite; }
.rf.is-go .rf-chat .typing { animation: rfType 9s ease 3.4s infinite; }
.rf.is-go .rf-chat .in { animation: rfMsgIn 9s ease 3.4s infinite; }
@keyframes rfMsg { 0% { opacity: 0; transform: translateY(8px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rfType { 0%, 14% { opacity: 0; } 17%, 36% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes rfMsgIn { 0%, 38% { opacity: 0; transform: translateY(8px); } 43%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rsDot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
/* the typing dots take no room once the answer is in */
.rf-chat .typing { grid-area: 2 / 1; } .rf-chat .in { grid-area: 2 / 1; }

/* our numbers, in turn: WhatsApp and call on one, then the other */
.rf-nums { display: grid; }
.rf-pair { grid-area: 1 / 1; display: grid; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s; }
.rf-pair.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s; }
.rf-btn { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.rf-btn:hover { transform: translateX(4px); border-color: rgba(34, 197, 94, 0.55); background: rgba(34, 197, 94, 0.08); }
.rf-btn i { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; }
.rf-btn.is-wa i { background: #25d366; color: #06301a; }
.rf-btn.is-wa i svg { fill: currentColor; stroke: none; width: 19px; height: 19px; }
.rf-btn.is-call i { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.rf-btn.is-call i svg { animation: rfRing 3s ease-in-out infinite; }
.rf-btn span { display: grid; }
.rf-btn small { font-size: 11px; color: #9a9aa3; }
.rf-btn b { font-size: 15.5px; color: var(--text, #f5f5f5); letter-spacing: 0.02em; }
.rf-btn b::before { content: "+91 "; }

/* the arrows: drawn in turn, then a light keeps running along them */
.rf-arrows { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.rf-arrows path { fill: none; stroke: #22c55e; stroke-width: 2; stroke-linecap: round; }
.rf-arrows path:not(.is-flow) { stroke-opacity: 0.35; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rf-arrows path.is-flow { stroke-width: 2.4; stroke-dasharray: 3 11; opacity: 0; }
.rf-arrows marker path { fill: none; stroke: #22c55e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; stroke-opacity: 1; }

.rf.is-go .rf-how { animation: rfInL 0.7s cubic-bezier(.2, .8, .2, 1) 0.1s both; }
.rf.is-go .rf-a1:not(.is-flow) { animation: rfDraw 0.9s ease-in-out 0.8s forwards; }
.rf.is-go .rf-a1.is-flow { animation: rfShow 0.4s ease 1.6s forwards, rfRun 1.2s linear 1.6s infinite; }
.rf.is-go .em-box { animation: rfGlow 1.2s ease 1.7s both; border-radius: 999px; }
.rf.is-go .rf-a2:not(.is-flow) { animation: rfDraw 0.9s ease-in-out 2.3s forwards; }
.rf.is-go .rf-a2.is-flow { animation: rfShow 0.4s ease 3.1s forwards, rfRun 1.2s linear 3.1s infinite; }
.rf.is-go .rf-talk { animation: rfInR 0.7s cubic-bezier(.2, .8, .2, 1) 2.9s both; }
@keyframes rfInL { from { opacity: 0; transform: translateX(-40px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes rfInR { from { opacity: 0; transform: translateX(40px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes rfDraw { to { stroke-dashoffset: 0; } }
@keyframes rfShow { to { opacity: 1; } }
@keyframes rfRun { to { stroke-dashoffset: -14; } }
@keyframes rfGlow { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } 30% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35); } 100% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); } }
@keyframes rfRing { 0%, 30%, 100% { transform: none; } 5%, 15%, 25% { transform: rotate(-14deg); } 10%, 20% { transform: rotate(14deg); } }

html[data-theme="light"] .rf-card { background: #ffffff; border-color: rgba(0, 0, 0, 0.07); box-shadow: 0 30px 60px -38px rgba(15, 23, 42, 0.35); }
html[data-theme="light"] .rf-title, html[data-theme="light"] .rf-btn b, html[data-theme="light"] .rs-steps b { color: #111418; }
html[data-theme="light"] .rf-title em, html[data-theme="light"] .rf-eye { color: #16a34a; }
html[data-theme="light"] .rf-btn { background: #f7f8fa; border-color: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .rf-btn:hover { background: #f0fdf4; }
html[data-theme="light"] .rf-btn small, html[data-theme="light"] .rs-steps small { color: #5b6472; }
html[data-theme="light"] .rf-btn.is-call i { background: #dbeafe; color: #2563eb; }
html[data-theme="light"] .rf-chat { background: #efeae2 radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px) 0 0 / 14px 14px; }
html[data-theme="light"] .rf-chat p { color: #111b21; }
html[data-theme="light"] .rf-chat .out { background: #d9fdd3; }
html[data-theme="light"] .rf-chat .in, html[data-theme="light"] .rf-chat .typing { background: #ffffff; }
html[data-theme="light"] .rf-chat p > em { color: #667781; }
html[data-theme="light"] .rs-steps::before { background: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .rs-steps i { background: #f4f5f7; border-color: rgba(0, 0, 0, 0.08); color: #6b7280; animation-name: rsStepLight; }
@keyframes rsStepLight { 0%, 30% { color: #ffffff; background: #16a34a; border-color: #16a34a; box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.15); } 40%, 100% { color: #6b7280; background: #f4f5f7; border-color: rgba(0, 0, 0, 0.08); box-shadow: none; } }
html[data-theme="light"] .rf-arrows path, html[data-theme="light"] .rf-arrows marker path { stroke: #16a34a; }

/* a narrow window: everything one under the other, no arrows */
@media (max-width: 1199px) {
  #emailPage .container.rf { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 24px; }
  .rf-main, .rf-how, .rf-talk { grid-column: 1; grid-row: auto; margin: 0; }
  .rf-arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rf.is-go .rf-card, .rf.is-go .em-box, .rf.is-go .rf-arrows path, .rf-btn.is-call i svg, .rs-steps i, .rs-steps::after { animation: none; }
  .rf-arrows path:not(.is-flow) { stroke-dashoffset: 0; } .rf-arrows path.is-flow { opacity: 1; }
  .rf.is-go .rf-chat p { animation: none; opacity: 1; } .rf-chat .typing { display: none; }
}
.rf-chat { height: 140px; }
#emailPage .container.rf { column-gap: 60px; row-gap: 40px; }
#emailPage .container.rf { column-gap: 90px; }

