*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.portal-page {
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      rgba(12, 12, 14, 0.94) 0%,
      rgba(12, 12, 14, 0.84) 48%,
      rgba(12, 12, 14, 0.48) 100%
    ),
    url("../images/nationwide.jpg") center / cover no-repeat;
}

.portal-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  min-height: 88px;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-decoration: none;
}

.portal-back {
  padding-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.portal-entry {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 9rem 5rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.7fr);
  gap: 6rem;
  align-items: center;
}

.portal-introduction {
  max-width: 760px;
}

.portal-eyebrow {
  margin: 0 0 1.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.portal-introduction h1 {
  max-width: 720px;
  margin: 0 0 2rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.4rem, 6vw, 6.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.portal-description {
  max-width: 650px;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.portal-benefits {
  max-width: 670px;
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}

.portal-benefit {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.portal-benefit span {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.portal-benefit p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.portal-access-card {
  width: 100%;
  max-width: 470px;
  justify-self: end;
  padding: 3.4rem;
  color: #222222;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.portal-card-label {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777777;
}

.portal-access-card h2 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  font-weight: 500;
  color: #151515;
}

.portal-card-intro {
  margin: 0 0 2.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #666666;
}

.portal-login-form {
  display: grid;
}

.portal-login-form label {
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333333;
}

.portal-login-form input {
  width: 100%;
  margin-bottom: 1.3rem;
  padding: 0.95rem 0;
  font-family: inherit;
  font-size: 0.92rem;
  color: #222222;
  background: transparent;
  border: none;
  border-bottom: 1px solid #bcbcbc;
  border-radius: 0;
  outline: none;
}

.portal-login-form input:focus {
  border-bottom-color: #111111;
}

.portal-primary-button,
.portal-secondary-button,
.portal-preview-button {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;

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

  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;

  cursor: pointer;
}

/* SIGN IN */

.portal-primary-button {
  margin-top: 0.8rem;

  color: #ffffff;
  background-color: #151515;
  border: 1px solid #151515;
}

.portal-primary-button:hover {
  color: #151515;
  background-color: transparent;
}

/* DIVIDER */

.portal-divider {
  margin: 1.8rem 0;

  display: flex;
  align-items: center;
  gap: 1rem;

  color: #999999;

  font-size: 0.72rem;
}

.portal-divider::before,
.portal-divider::after {
  content: "";

  height: 1px;
  flex: 1;

  background-color: #dddddd;
}

/* REQUEST MEMBERSHIP */

.portal-secondary-button {
  color: #151515;
  background-color: transparent;
  border: 1px solid #151515;
}

.portal-secondary-button:hover {
  color: #ffffff;
  background-color: #151515;
}

/* PREVIEW */

.portal-preview-button {
  min-height: 44px;
  margin-top: 0.8rem;

  font-size: 0.66rem;

  color: #706b65;
  background-color: #f5f3ef;
  border: 1px solid #d4cec6;
}

.portal-preview-button:hover {
  color: #151515;
  border-color: #151515;
}

/* DISCLAIMER */

.portal-disclaimer {
  margin: 1.2rem 0 0;

  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;

  color: #888888;
}

@media (max-width: 600px) {
  .portal-header {
    min-height: 72px;
    padding: 0 1.25rem;
  }

  .portal-back {
    font-size: 0.62rem;
  }

  .portal-entry {
    padding: 7rem 1.25rem 2rem;
  }

  .portal-introduction h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .portal-benefits {
    margin-top: 2.5rem;
  }

  .portal-access-card {
    padding: 2.2rem 1.5rem;
  }
}

/* =========================================
   ASSISTANT DASHBOARD
   ========================================= */

.dashboard-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: #222222;
  background-color: #f4f2ee;
}

.dashboard-page button,
.dashboard-page a {
  font-family: inherit;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
}

/* SIDEBAR */

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background-color: #151515;
}

.dashboard-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-decoration: none;
}

.dashboard-portal-name {
  max-width: 170px;
  margin: 0.9rem 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-navigation {
  margin: 4rem 0;
  display: grid;
  gap: 0.4rem;
}

.dashboard-nav-link {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.dashboard-nav-link span {
  font-family: "Playfair Display", serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
  padding-left: 0.4rem;
  color: #ffffff;
}

.dashboard-nav-link.active span {
  color: #ffffff;
}

.dashboard-sidebar-footer {
  display: grid;
  gap: 0.65rem;
  font-size: 0.73rem;
}

.dashboard-sidebar-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
}

.dashboard-sidebar-footer a {
  color: #ffffff;
  text-decoration: none;
}

.dashboard-sign-out {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  color: rgba(255, 255, 255, 0.55) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* MAIN AREA */

.dashboard-main {
  min-width: 0;
  padding: 3rem clamp(2rem, 4vw, 5rem) 5rem;
}

.dashboard-topbar {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.dashboard-eyebrow,
.panel-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a857d;
}

.dashboard-topbar h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  font-weight: 500;
  line-height: 1;
  color: #171717;
}

.dashboard-member {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-member-details {
  display: grid;
  gap: 0.25rem;
  text-align: right;
}

.dashboard-member-details strong {
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-member-details span {
  font-size: 0.7rem;
  color: #888888;
}

.dashboard-member-avatar,
.passenger-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.dashboard-member-avatar {
  width: 48px;
  height: 48px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #1b1b1b;
}

/* SUMMARY */

.dashboard-summary {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: #ffffff;
  border: 1px solid #dfdcd6;
}

.summary-card {
  min-height: 140px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #dfdcd6;
}

.summary-card:last-child {
  border-right: none;
}

.summary-number {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: #171717;
}

.summary-card p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #77736d;
}

.reward-summary {
  color: #ffffff;
  background-color: #1a1a1a;
}

.reward-summary .summary-number,
.reward-summary p {
  color: #ffffff;
}

/* DASHBOARD GRID */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.dashboard-column-large,
.dashboard-column-small {
  display: grid;
  gap: 2rem;
}

.dashboard-panel {
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #dfdcd6;
}

.dashboard-panel-heading {
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.dashboard-panel-heading h2,
.dashboard-column-small h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #171717;
}

.dashboard-panel-heading a,
.text-button {
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333333;
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

/* TRIPS */

.trip-card {
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border-top: 1px solid #e4e1dc;
}

.trip-date {
  width: 62px;
  height: 72px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #ffffff;
  background-color: #1a1a1a;
}

.trip-date span {
  font-size: 0.61rem;
  letter-spacing: 0.12em;
}

.trip-date strong {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

.trip-status {
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4d765b;
}

.trip-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4d765b;
}

.trip-status.pending {
  color: #a97832;
}

.trip-status.pending span {
  background-color: #a97832;
}

.trip-information h3 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.trip-information > p {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: #69655f;
}

.trip-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trip-details span {
  padding-right: 0.6rem;
  font-size: 0.65rem;
  color: #8a857d;
  border-right: 1px solid #d6d2cb;
}

.trip-details span:last-child {
  border-right: none;
}

.trip-action,
.passenger-action {
  padding: 0.75rem 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #222222;
  background: transparent;
  border: 1px solid #bcb7ae;
  cursor: pointer;
}

/* PASSENGERS */

.passenger-list {
  display: grid;
}

.passenger-card {
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  border-top: 1px solid #e4e1dc;
}

.passenger-avatar {
  width: 48px;
  height: 48px;
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  color: #ffffff;
  background-color: #292929;
}

.passenger-information h3 {
  margin: 0 0 0.2rem;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.passenger-information > p {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  color: #858078;
}

.passenger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.passenger-tags span {
  padding: 0.35rem 0.55rem;
  font-size: 0.6rem;
  color: #59554f;
  background-color: #f0eee9;
}

/* RIGHT COLUMN */

.attention-panel {
  color: #ffffff;
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.attention-panel .panel-label,
.attention-panel h2 {
  color: #ffffff;
}

.attention-panel h2 {
  margin-bottom: 1rem;
  line-height: 1.15;
}

.attention-panel > p:not(.panel-label) {
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.attention-panel button {
  width: 100%;
  min-height: 46px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #151515;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  cursor: pointer;
}

.preference-panel h2,
.rewards-panel h2 {
  margin-bottom: 1.5rem;
}

.preference-item {
  padding: 0.9rem 0;
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid #e3e0db;
}

.preference-item span {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #88837b;
}

.preference-item strong {
  font-size: 0.76rem;
  font-weight: 600;
  color: #262626;
}

.outline-button {
  width: 100%;
  min-height: 44px;
  margin-top: 1.4rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #222222;
  background: transparent;
  border: 1px solid #aaa59c;
  cursor: pointer;
}

.rewards-panel > p:not(.panel-label) {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: #716d66;
}

.reward-progress-bar {
  height: 5px;
  overflow: hidden;
  background-color: #dedbd5;
}

.reward-progress-bar span {
  width: 80%;
  height: 100%;
  display: block;
  background-color: #1a1a1a;
}

.reward-progress-labels {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: #858078;
}

.rewards-panel small {
  margin-top: 1.3rem;
  display: block;
  font-size: 0.58rem;
  line-height: 1.5;
  color: #99948c;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .dashboard-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-column-small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    min-height: auto;
    padding: 1.5rem;
  }

  .dashboard-navigation {
    margin: 2rem 0;
    display: flex;
    overflow-x: auto;
  }

  .dashboard-nav-link {
    min-width: 175px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dashboard-sidebar-footer {
    display: none;
  }

  .dashboard-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-card:nth-child(2) {
    border-right: none;
  }

  .summary-card:nth-child(-n + 2) {
    border-bottom: 1px solid #dfdcd6;
  }

  .dashboard-column-small {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .dashboard-main {
    padding: 2rem 1rem 3rem;
  }

  .dashboard-topbar {
    display: block;
  }

  .dashboard-member {
    margin-top: 1.5rem;
  }

  .dashboard-member-details {
    text-align: left;
  }

  .dashboard-panel {
    padding: 1.35rem;
  }

  .trip-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .trip-date {
    width: 54px;
    height: 66px;
  }

  .trip-action {
    grid-column: 2;
    justify-self: start;
  }

  .passenger-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .passenger-action {
    grid-column: 2;
    justify-self: start;
  }
}

/* =========================================
   PASSENGER PROFILES
   ========================================= */

.passenger-page-main {
  max-width: 1700px;
  width: 100%;
}

.passenger-topbar {
  align-items: flex-end;
}

.passenger-page-description {
  max-width: 650px;
  margin: 1.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #77736d;
}

.add-passenger-button {
  min-width: 165px;
  min-height: 48px;
  padding: 0 1.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #191919;
  border: 1px solid #191919;
  cursor: pointer;
}

.passenger-workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

/* PASSENGER DIRECTORY */

.passenger-directory {
  min-height: 100%;
  border-right: 1px solid #ddd9d2;
}

.passenger-search {
  padding: 1.6rem;
  border-bottom: 1px solid #ddd9d2;
}

.passenger-search label {
  margin-bottom: 0.7rem;
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #77736d;
}

.passenger-search input {
  width: 100%;
  padding: 0.85rem 0;
  font-family: inherit;
  font-size: 0.78rem;
  color: #222222;
  background: transparent;
  border: none;
  border-bottom: 1px solid #bbb6ae;
  outline: none;
}

.passenger-directory-list {
  display: grid;
}

.directory-passenger {
  width: 100%;
  padding: 1.25rem 1.2rem;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  text-align: left;
  color: #333333;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #e4e1dc;
  cursor: pointer;
}

.directory-passenger:hover,
.directory-passenger.active {
  background-color: #f0eee9;
}

.directory-passenger.active {
  box-shadow: inset 3px 0 0 #181818;
}

.directory-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 0.73rem;
  color: #ffffff;
  background-color: #222222;
  border-radius: 50%;
}

.directory-passenger-name {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.directory-passenger-name strong {
  overflow: hidden;
  font-family: "Playfair Display", serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-passenger-name small {
  overflow: hidden;
  font-size: 0.58rem;
  color: #858078;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-arrow {
  font-size: 0.8rem;
  color: #99948c;
}

/* PROFILE EDITOR */

.passenger-profile-editor {
  min-width: 0;
}

.profile-editor-header {
  padding: 2rem 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid #ddd9d2;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.profile-large-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #ffffff;
  background-color: #1b1b1b;
  border-radius: 50%;
}

.profile-identity h2 {
  margin: 0 0 0.3rem;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.profile-identity > div:last-child > span {
  font-size: 0.68rem;
  color: #858078;
}

.profile-header-actions {
  display: flex;
  gap: 0.75rem;
}

.profile-delete-button,
.profile-save-button {
  min-height: 43px;
  padding: 0 1.2rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.profile-delete-button {
  color: #66615a;
  background: transparent;
  border: 1px solid #c8c3ba;
}

.profile-save-button {
  color: #ffffff;
  background-color: #181818;
  border: 1px solid #181818;
}

.profile-sections {
  padding: 0 2.4rem 2.4rem;
}

.profile-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #dedad3;
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section-heading {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
}

.profile-section-heading > span {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  color: #aaa59d;
}

.profile-section-heading h3 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.profile-section-heading p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  color: #88837b;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.profile-field {
  display: grid;
}

.profile-field label {
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #66615a;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.78rem;
  color: #252525;
  background-color: #faf9f7;
  border: 1px solid #d5d0c8;
  outline: none;
}

.profile-field input,
.profile-field select {
  min-height: 46px;
  padding: 0 0.9rem;
}

.profile-field textarea {
  min-height: 130px;
  padding: 1rem;
  line-height: 1.7;
  resize: vertical;
}

.profile-field input:focus,
.profile-field select:focus,
.profile-field textarea:focus {
  border-color: #55514b;
}

.profile-field-full {
  margin-top: 1.8rem;
}

.profile-field small {
  margin-top: 0.55rem;
  font-size: 0.58rem;
  line-height: 1.5;
  color: #918c84;
}

/* COMMUNICATION PERMISSIONS */

.communication-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #ddd9d2;
  border-left: 1px solid #ddd9d2;
}

.permission-option {
  min-height: 125px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  border-right: 1px solid #ddd9d2;
  border-bottom: 1px solid #ddd9d2;
  cursor: pointer;
}

.permission-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-control {
  width: 19px;
  height: 19px;
  position: relative;
  display: block;
  border: 1px solid #928d85;
}

.permission-option input:checked + .permission-control {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.permission-option input:checked + .permission-control::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #ffffff;
}

.permission-option > span:last-child {
  display: grid;
  gap: 0.45rem;
}

.permission-option strong {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.permission-option small {
  font-size: 0.63rem;
  line-height: 1.55;
  color: #817c74;
}

.communication-warning {
  margin-top: 1.3rem;
  padding: 1.25rem 1.4rem;
  color: #ffffff;
  background-color: #1a1a1a;
}

.communication-warning strong {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.communication-warning p {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.internal-notes-section {
  margin: 0 -2.4rem -2.4rem;
  padding: 2.5rem 2.4rem;
  background-color: #efede8;
}

/* RESPONSIVE PASSENGER PAGE */

@media (max-width: 1200px) {
  .passenger-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .profile-form-grid,
  .communication-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .passenger-workspace {
    display: block;
  }

  .passenger-directory {
    border-right: none;
    border-bottom: 1px solid #ddd9d2;
  }

  .passenger-directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-passenger {
    border-right: 1px solid #e4e1dc;
  }

  .passenger-topbar {
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  .passenger-topbar {
    display: block;
  }

  .add-passenger-button {
    width: 100%;
    margin-top: 1.5rem;
  }

  .passenger-directory-list {
    grid-template-columns: 1fr;
  }

  .profile-editor-header {
    padding: 1.5rem;
    display: block;
  }

  .profile-header-actions {
    margin-top: 1.5rem;
  }

  .profile-delete-button,
  .profile-save-button {
    flex: 1;
  }

  .profile-sections {
    padding: 0 1.5rem 1.5rem;
  }

  .internal-notes-section {
    margin: 0 -1.5rem -1.5rem;
    padding: 2rem 1.5rem;
  }

  .profile-section-heading {
    grid-template-columns: 30px minmax(0, 1fr);
  }
}

/* =========================================
   UPCOMING TRIPS
   ========================================= */

.trips-page-main {
  max-width: 1700px;
  width: 100%;
}

.trips-topbar {
  align-items: flex-end;
}

/* FILTERS */

.trip-filter-bar {
  margin-bottom: 1.5rem;
  display: flex;
  overflow-x: auto;
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.trip-filter {
  min-height: 54px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #858078;
  background: transparent;
  border: none;
  border-right: 1px solid #ddd9d2;
  cursor: pointer;
}

.trip-filter span {
  min-width: 24px;
  height: 24px;
  padding: 0 0.35rem;
  display: grid;
  place-items: center;
  font-size: 0.59rem;
  color: #77736c;
  background-color: #eeece7;
  border-radius: 999px;
}

.trip-filter.active {
  color: #ffffff;
  background-color: #1a1a1a;
}

.trip-filter.active span {
  color: #1a1a1a;
  background-color: #ffffff;
}

/* SELECTED ITINERARY */

.selected-itinerary-header {
  margin-bottom: 2rem;
  padding: 2rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  color: #ffffff;
  background-color: #1a1a1a;
}

.selected-itinerary-header .panel-label {
  color: rgba(255, 255, 255, 0.55);
}

.selected-itinerary-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 500;
}

.itinerary-header-details {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.itinerary-header-details span {
  padding-right: 0.7rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.itinerary-header-details span:last-child {
  border-right: none;
}

.itinerary-completion {
  width: 250px;
  flex: 0 0 auto;
}

.itinerary-completion > span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.itinerary-completion strong {
  margin: 0.4rem 0 0.8rem;
  display: block;
  font-size: 0.78rem;
}

.itinerary-completion-bar {
  height: 4px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.18);
}

.itinerary-completion-bar span {
  width: 75%;
  height: 100%;
  display: block;
  background-color: #ffffff;
}

/* MAIN TRIP LAYOUT */

.trips-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 325px;
  gap: 2rem;
  align-items: start;
}

.itinerary-timeline {
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.itinerary-day + .itinerary-day {
  margin-top: 3rem;
}

.itinerary-day-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.itinerary-day-date {
  width: 62px;
  height: 70px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #ffffff;
  background-color: #1a1a1a;
}

.itinerary-day-date span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.itinerary-day-date strong {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

.itinerary-day-header p {
  margin: 0 0 0.25rem;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #918c84;
}

.itinerary-day-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 500;
}

/* ITINERARY SEGMENTS */

.itinerary-segment {
  position: relative;
  padding-left: 45px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
}

.segment-line {
  position: relative;
}

.segment-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 1px;
  background-color: #d5d1ca;
}

.segment-line span {
  width: 11px;
  height: 11px;
  position: absolute;
  top: 2.2rem;
  left: 4px;
  z-index: 1;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: #4e765b;
  box-shadow: 0 0 0 1px #4e765b;
}

.itinerary-segment.attention .segment-line span {
  background-color: #a97832;
  box-shadow: 0 0 0 1px #a97832;
}

.flight-segment .segment-line span {
  background-color: #78736c;
  box-shadow: 0 0 0 1px #78736c;
}

.segment-content {
  margin-bottom: 1.25rem;
  padding: 1.7rem;
  border: 1px solid #dedad3;
}

.segment-topline {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.segment-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segment-status.confirmed {
  color: #4e765b;
}

.segment-status.monitoring {
  color: #77736c;
}

.segment-status.attention {
  color: #a97832;
}

.segment-time {
  font-size: 0.68rem;
  font-weight: 600;
  color: #4f4b46;
}

.segment-content h3 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.segment-route {
  margin: 0 0 1.3rem;
  font-size: 0.72rem;
  color: #7e7971;
}

.segment-details-grid {
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e0ddd7;
  border-left: 1px solid #e0ddd7;
}

.segment-details-grid > div {
  min-height: 75px;
  padding: 0.9rem;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  border-right: 1px solid #e0ddd7;
  border-bottom: 1px solid #e0ddd7;
}

.segment-details-grid span,
.side-instruction span {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #928d85;
}

.segment-details-grid strong,
.side-instruction strong {
  font-size: 0.68rem;
  font-weight: 600;
}

.segment-instruction {
  margin-bottom: 1.2rem;
  padding: 1rem;
  background-color: #f1efe9;
}

.segment-instruction span {
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #68635d;
}

.segment-instruction p {
  margin: 0.4rem 0 0;
  font-size: 0.67rem;
  line-height: 1.6;
  color: #6f6a63;
}

.segment-button {
  min-height: 39px;
  padding: 0 1rem;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #222222;
  background: transparent;
  border: 1px solid #aaa59d;
  cursor: pointer;
}

/* FLIGHT REFERENCE */

.flight-segment .segment-content {
  background-color: #f3f1ed;
}

.flight-reference {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.flight-reference > div:not(.flight-reference-line) {
  display: grid;
  gap: 0.2rem;
}

.flight-reference > div:last-child {
  text-align: right;
}

.flight-reference span {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #928d85;
}

.flight-reference strong {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 500;
}

.flight-reference small {
  font-size: 0.62rem;
  color: #77736c;
}

.flight-reference-line {
  position: relative;
  height: 1px;
  background-color: #aaa59d;
}

.flight-reference-line span {
  width: 7px;
  height: 7px;
  position: absolute;
  top: -3px;
  right: 0;
  border-radius: 50%;
  background-color: #77736c;
}

.flight-disclaimer {
  margin: 0;
  font-size: 0.61rem;
  line-height: 1.6;
  color: #88837c;
}

/* MISSING INFORMATION */

.missing-information {
  padding: 1.2rem;
  background-color: #fbf4e8;
  border-left: 3px solid #a97832;
}

.missing-information strong {
  font-size: 0.7rem;
}

.missing-information p {
  margin: 0.45rem 0 1rem;
  font-size: 0.67rem;
  line-height: 1.6;
  color: #716a60;
}

.missing-information button {
  min-height: 37px;
  padding: 0 1rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #1a1a1a;
  border: none;
  cursor: pointer;
}

/* TRIP SIDEBAR */

.itinerary-sidebar {
  display: grid;
  gap: 1.25rem;
}

.itinerary-side-card {
  padding: 1.6rem;
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.itinerary-side-card h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.contact-role {
  margin-top: 0.3rem;
  display: block;
  font-size: 0.66rem;
  color: #858078;
}

.contact-information {
  margin: 1.4rem 0;
  display: grid;
  gap: 0.55rem;
}

.contact-information a {
  font-size: 0.7rem;
  color: #333333;
  text-decoration: none;
}

.side-instruction {
  padding: 0.9rem 0;
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid #e0ddd7;
}

.side-card-link {
  margin-top: 1.2rem;
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
}

.coordination-card {
  color: #ffffff;
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.coordination-card .panel-label,
.coordination-card h2 {
  color: #ffffff;
}

.coordination-card h2 {
  line-height: 1.15;
}

.coordination-card > p:not(.panel-label) {
  margin: 1rem 0 1.4rem;
  font-size: 0.68rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.67);
}

.coordination-card button {
  width: 100%;
  min-height: 43px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1a1a;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
}

/* RESPONSIVE TRIPS */

@media (max-width: 1150px) {
  .trips-layout {
    grid-template-columns: 1fr;
  }

  .itinerary-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segment-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .selected-itinerary-header {
    display: block;
  }

  .itinerary-completion {
    width: 100%;
    margin-top: 2rem;
  }

  .itinerary-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .trips-topbar {
    display: block;
  }

  .itinerary-timeline {
    padding: 1rem;
  }

  .itinerary-segment {
    padding-left: 0;
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .segment-content {
    padding: 1.15rem;
  }

  .segment-details-grid {
    grid-template-columns: 1fr;
  }

  .flight-reference {
    gap: 0.75rem;
  }
}

/* =========================================
   NEW TRAVEL REQUEST
   ========================================= */

.request-page-main {
  max-width: 1700px;
  width: 100%;
}

.request-topbar {
  align-items: flex-end;
}

.request-save-draft,
.request-continue-button {
  min-height: 46px;
  padding: 0 1.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.request-save-draft {
  color: #252525;
  background: transparent;
  border: 1px solid #aaa59d;
}

.request-continue-button {
  color: #ffffff;
  background-color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

/* REQUEST PROGRESS */

.request-progress {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.request-progress-step {
  min-height: 74px;
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-right: 1px solid #ddd9d2;
}

.request-progress-step:last-child {
  border-right: none;
}

.request-progress-step span {
  font-family: "Playfair Display", serif;
  font-size: 0.78rem;
  color: #aaa59d;
}

.request-progress-step p {
  margin: 0;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b867e;
}

.request-progress-step.active {
  color: #ffffff;
  background-color: #1a1a1a;
}

.request-progress-step.active span,
.request-progress-step.active p {
  color: #ffffff;
}

/* REQUEST LAYOUT */

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.travel-request-form {
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.request-section {
  padding: 2.4rem;
  border-bottom: 1px solid #ddd9d2;
}

.request-section-heading {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
}

.request-section-heading > span {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  color: #aaa59d;
}

.request-section-heading h2 {
  margin: 0 0 0.4rem;
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.request-section-heading p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  color: #88837b;
}

/* SEGMENTS */

.request-segments {
  display: grid;
  gap: 1.2rem;
}

.request-segment-card {
  padding: 1.5rem;
  background-color: #faf9f7;
  border: 1px solid #d8d4cd;
}

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

.request-segment-header span {
  margin-bottom: 0.35rem;
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #918c84;
}

.request-segment-header h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.request-segment-header button {
  padding: 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a5a52;
  background: transparent;
  border: none;
  cursor: pointer;
}

.flight-reference-card {
  background-color: #f0eee9;
}

.request-segment-explanation {
  margin: -0.5rem 0 1.5rem;
  padding: 0.8rem 1rem;
  font-size: 0.63rem;
  line-height: 1.6;
  color: #777169;
  background-color: rgba(255, 255, 255, 0.65);
}

.charter-referral-option {
  margin-top: 1.3rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  background-color: #ffffff;
  border: 1px solid #d5d0c8;
  cursor: pointer;
}

.charter-referral-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.charter-referral-option input:checked + .permission-control {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.charter-referral-option input:checked + .permission-control::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #ffffff;
}

.charter-referral-option > span:last-child {
  display: grid;
  gap: 0.35rem;
}

.charter-referral-option strong {
  font-size: 0.7rem;
}

.charter-referral-option small {
  font-size: 0.61rem;
  line-height: 1.55;
  color: #817c74;
}

.add-segment-button {
  min-height: 52px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #333333;
  background: transparent;
  border: 1px dashed #9f9a92;
  cursor: pointer;
}

.request-form-footer {
  padding: 1.5rem 2.4rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  background-color: #efede8;
}

/* REQUEST SIDEBAR */

.request-sidebar {
  display: grid;
  gap: 1.2rem;
}

.request-side-card {
  padding: 1.6rem;
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.request-side-card h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.request-summary-item {
  padding: 0.9rem 0;
  display: grid;
  gap: 0.3rem;
  border-bottom: 1px solid #e0ddd7;
}

.request-summary-item:first-of-type {
  margin-top: 1rem;
  border-top: 1px solid #e0ddd7;
}

.request-summary-item span {
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #918c84;
}

.request-summary-item strong {
  font-size: 0.69rem;
  font-weight: 600;
}

.request-next-steps {
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  list-style: none;
}

.request-next-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.75rem;
  font-size: 0.66rem;
  line-height: 1.55;
  color: #6f6a63;
}

.request-next-steps span {
  font-family: "Playfair Display", serif;
  color: #99948c;
}

.request-help-card {
  color: #ffffff;
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.request-help-card .panel-label,
.request-help-card h2 {
  color: #ffffff;
}

.request-help-card h2 {
  line-height: 1.15;
}

.request-help-card > p:not(.panel-label) {
  margin: 1rem 0 1.4rem;
  font-size: 0.67rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.request-help-card button {
  width: 100%;
  min-height: 43px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1a1a;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
}

/* RESPONSIVE REQUEST PAGE */

@media (max-width: 1100px) {
  .request-layout {
    grid-template-columns: 1fr;
  }

  .request-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .request-sidebar {
    grid-template-columns: 1fr;
  }

  .request-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-progress-step:nth-child(2) {
    border-right: none;
  }

  .request-progress-step:nth-child(-n + 2) {
    border-bottom: 1px solid #ddd9d2;
  }
}

@media (max-width: 650px) {
  .request-topbar {
    display: block;
  }

  .request-topbar > .request-save-draft {
    width: 100%;
    margin-top: 1.5rem;
  }

  .request-section {
    padding: 1.5rem;
  }

  .request-section-heading {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .request-form-footer {
    padding: 1.3rem;
    display: grid;
  }

  .request-save-draft,
  .request-continue-button {
    width: 100%;
  }
}

/* =========================================
   AUTOMATIC FLIGHT DATA
   ========================================= */

.flight-live-data {
  margin-top: 1.4rem;
  padding: 1.2rem;
  background-color: #ffffff;
  border: 1px solid #d5d0c8;
}

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

.flight-live-header > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.flight-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #a97832;
}

.flight-live-header small {
  font-size: 0.57rem;
  color: #918c84;
}

.flight-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #dedad3;
  border-left: 1px solid #dedad3;
}

.flight-live-grid > div {
  min-height: 72px;
  padding: 0.85rem;
  display: grid;
  align-content: center;
  gap: 0.3rem;
  border-right: 1px solid #dedad3;
  border-bottom: 1px solid #dedad3;
}

.flight-live-grid span {
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #928d85;
}

.flight-live-grid strong {
  font-size: 0.68rem;
  font-weight: 600;
}

.flight-live-data > p {
  margin: 0.9rem 0 0;
  font-size: 0.59rem;
  line-height: 1.6;
  color: #817c74;
}

/* =========================================
   FLIGHT-ADJUSTED PICKUP TIMING
   ========================================= */

.pickup-timing-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d8d4cd;
}

.pickup-timing-heading {
  margin-bottom: 1rem;
}

.pickup-timing-heading > span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pickup-timing-heading p {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  color: #88837b;
}

.pickup-timing-options {
  display: grid;
  gap: 0.7rem;
}

.pickup-timing-option {
  padding: 1rem;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  background-color: #ffffff;
  border: 1px solid #d5d0c8;
  cursor: pointer;
}

.pickup-timing-option > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pickup-radio {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
  border: 1px solid #918c84;
  border-radius: 50%;
}

.pickup-timing-option
  > input[type="radio"]:checked
  + .pickup-radio {
  border-color: #1a1a1a;
}

.pickup-timing-option
  > input[type="radio"]:checked
  + .pickup-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: #1a1a1a;
  border-radius: 50%;
}

.pickup-timing-option > span:last-child {
  display: grid;
  gap: 0.4rem;
}

.pickup-timing-option strong {
  font-size: 0.69rem;
}

.pickup-timing-option small {
  font-size: 0.61rem;
  line-height: 1.55;
  color: #817c74;
}

.pickup-timing-option select,
.pickup-timing-option input[type="time"] {
  width: min(100%, 290px);
  min-height: 40px;
  margin-top: 0.5rem;
  padding: 0 0.75rem;
  font-family: inherit;
  font-size: 0.65rem;
  color: #252525;
  background-color: #f6f4f0;
  border: 1px solid #cec9c1;
}

@media (max-width: 750px) {
  .flight-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================
   PARTNER REWARDS
   ========================================= */

.rewards-page-main {
  max-width: 1700px;
  width: 100%;
}

.rewards-topbar {
  align-items: flex-end;
}

.rewards-terms-button {
  min-height: 46px;
  padding: 0 1.3rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222222;
  background: transparent;
  border: 1px solid #aaa59d;
  cursor: pointer;
}

/* SUMMARY */

.rewards-summary-grid {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.rewards-summary-card {
  min-height: 170px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ddd9d2;
}

.rewards-summary-card:last-child {
  border-right: none;
}

.rewards-summary-card p {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #817c74;
}

.rewards-summary-card strong {
  margin: auto 0 0.6rem;
  font-family: "Playfair Display", serif;
  font-size: 2.35rem;
  font-weight: 500;
}

.rewards-summary-card > span {
  font-size: 0.58rem;
  line-height: 1.5;
  color: #918c84;
}

.rewards-summary-card.primary {
  color: #ffffff;
  background-color: #1a1a1a;
}

.rewards-summary-card.primary p,
.rewards-summary-card.primary > span {
  color: rgba(255, 255, 255, 0.65);
}

/* REWARDS LAYOUT */

.rewards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.rewards-main-column,
.rewards-side-column {
  display: grid;
  gap: 2rem;
}

/* QUALIFICATION */

.rewards-status-badge {
  padding: 0.4rem 0.65rem;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8a642e;
  background-color: #f8eddc;
}

.rewards-progress-details {
  display: grid;
  gap: 1.5rem;
}

.rewards-progress-item-heading {
  margin-bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.65rem;
}

.rewards-progress-item-heading span {
  color: #716c65;
}

.rewards-progress-item-heading strong {
  font-weight: 600;
}

.rewards-large-progress {
  height: 7px;
  overflow: hidden;
  background-color: #dedad3;
}

.rewards-large-progress span {
  height: 100%;
  display: block;
  background-color: #1a1a1a;
}

.rewards-progress-note {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  font-size: 0.59rem;
  line-height: 1.6;
  color: #918c84;
  border-top: 1px solid #e0ddd7;
}

/* REWARDS TABLE */

.rewards-table-wrapper {
  overflow-x: auto;
}

.rewards-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.rewards-table th {
  padding: 0.9rem;
  text-align: left;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #858078;
  background-color: #f1efe9;
  border: 1px solid #ddd9d2;
}

.rewards-table td {
  padding: 1rem 0.9rem;
  font-size: 0.66rem;
  color: #55514b;
  border: 1px solid #e0ddd7;
}

.rewards-table td:first-child {
  display: grid;
  gap: 0.25rem;
}

.rewards-table td:first-child strong {
  font-family: "Playfair Display", serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: #222222;
}

.rewards-table td:first-child span {
  font-size: 0.55rem;
  color: #99948c;
}

.table-status {
  padding: 0.35rem 0.55rem;
  display: inline-block;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-status.pending {
  color: #8a642e;
  background-color: #f8eddc;
}

/* CALCULATION */

.reward-calculation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #ddd9d2;
  border-left: 1px solid #ddd9d2;
}

.reward-calculation-grid article {
  min-height: 220px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ddd9d2;
  border-bottom: 1px solid #ddd9d2;
}

.reward-calculation-grid article > span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #817c74;
}

.reward-calculation-grid article > strong {
  margin: auto 0 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  font-weight: 500;
}

.reward-calculation-grid article p {
  margin: 0;
  font-size: 0.61rem;
  line-height: 1.6;
  color: #817c74;
}

/* REQUIREMENTS */

.rewards-requirements-card,
.rewards-information-card {
  padding: 1.6rem;
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.rewards-requirements-card h2,
.rewards-information-card h2 {
  margin: 0 0 1.4rem;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.reward-requirement {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.75rem;
  border-top: 1px solid #e0ddd7;
}

.requirement-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  border-radius: 50%;
}

.reward-requirement.complete .requirement-icon {
  color: #ffffff;
  background-color: #4e765b;
}

.reward-requirement.incomplete .requirement-icon {
  color: #ffffff;
  background-color: #a97832;
}

.reward-requirement strong {
  font-size: 0.68rem;
}

.reward-requirement p {
  margin: 0.3rem 0 0;
  font-size: 0.59rem;
  line-height: 1.5;
  color: #858078;
}

.rewards-requirements-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 1.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #1a1a1a;
  border: none;
  cursor: pointer;
}

.rewards-information-card {
  color: #ffffff;
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.rewards-information-card .panel-label,
.rewards-information-card h2 {
  color: #ffffff;
}

.rewards-information-card > p:not(.panel-label) {
  margin: 0 0 1rem;
  font-size: 0.64rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.67);
}

/* RESPONSIVE REWARDS */

@media (max-width: 1150px) {
  .rewards-layout {
    grid-template-columns: 1fr;
  }

  .rewards-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rewards-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rewards-summary-card:nth-child(2) {
    border-right: none;
  }

  .rewards-summary-card:nth-child(-n + 2) {
    border-bottom: 1px solid #ddd9d2;
  }
}

@media (max-width: 750px) {
  .reward-calculation-grid,
  .rewards-side-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .rewards-topbar {
    display: block;
  }

  .rewards-terms-button {
    width: 100%;
    margin-top: 1.5rem;
  }

  .rewards-summary-grid {
    grid-template-columns: 1fr;
  }

  .rewards-summary-card {
    border-right: none;
    border-bottom: 1px solid #ddd9d2;
  }
}

/* =========================================
   ACCOUNT SETTINGS
   ========================================= */

.settings-page-main {
  max-width: 1650px;
  width: 100%;
}

.settings-topbar {
  align-items: flex-end;
}

.settings-save-button {
  min-height: 46px;
  padding: 0 1.3rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #1a1a1a;
  border: 1px solid #1a1a1a;
  cursor: pointer;
}

.settings-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* SETTINGS NAVIGATION */

.settings-navigation {
  position: sticky;
  top: 2rem;
  display: grid;
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.settings-navigation a {
  min-height: 60px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #77736c;
  text-decoration: none;
  border-bottom: 1px solid #e0ddd7;
}

.settings-navigation a:last-child {
  border-bottom: none;
}

.settings-navigation a span {
  font-family: "Playfair Display", serif;
  font-size: 0.68rem;
  color: #aaa59d;
}

.settings-navigation a:hover,
.settings-navigation a.active {
  color: #ffffff;
  background-color: #1a1a1a;
}

.settings-navigation a:hover span,
.settings-navigation a.active span {
  color: #ffffff;
}

/* SETTINGS CONTENT */

.settings-content {
  display: grid;
  gap: 1.5rem;
}

.settings-section {
  padding: 2.3rem;
  scroll-margin-top: 2rem;
  background-color: #ffffff;
  border: 1px solid #ddd9d2;
}

.settings-section-heading {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.settings-section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.settings-section-heading > div:first-child > p:not(.panel-label) {
  max-width: 660px;
  margin: 0.6rem 0 0;
  font-size: 0.68rem;
  line-height: 1.6;
  color: #88837b;
}

.settings-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: "Playfair Display", serif;
  font-size: 0.9rem;
  color: #ffffff;
  background-color: #1a1a1a;
  border-radius: 50%;
}

/* EMPLOYER AUTHORIZATION */

.employer-authorization-status {
  margin-top: 2rem;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background-color: #eef3ef;
  border-left: 3px solid #4e765b;
}

.authorization-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #ffffff;
  background-color: #4e765b;
  border-radius: 50%;
}

.employer-authorization-status strong {
  font-size: 0.7rem;
}

.employer-authorization-status p {
  margin: 0.35rem 0 0;
  font-size: 0.6rem;
  line-height: 1.55;
  color: #6f766f;
}

.employer-authorization-status button,
.security-setting button,
.payment-profile-status button {
  min-height: 39px;
  padding: 0 0.9rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #222222;
  background: transparent;
  border: 1px solid #aaa59d;
  cursor: pointer;
}

/* NOTIFICATION TOGGLES */

.settings-toggle-list {
  display: grid;
  border-top: 1px solid #ddd9d2;
}

.settings-toggle-row {
  min-height: 86px;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid #ddd9d2;
  cursor: pointer;
}

.settings-toggle-row > span:first-child {
  display: grid;
  gap: 0.35rem;
}

.settings-toggle-row strong {
  font-size: 0.7rem;
}

.settings-toggle-row small {
  font-size: 0.6rem;
  line-height: 1.5;
  color: #858078;
}

.settings-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-toggle {
  width: 42px;
  height: 23px;
  position: relative;
  display: block;
  background-color: #c9c5be;
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.settings-toggle::after {
  content: "";
  width: 17px;
  height: 17px;
  position: absolute;
  top: 3px;
  left: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.settings-toggle-row input:checked + .settings-toggle {
  background-color: #1a1a1a;
}

.settings-toggle-row input:checked + .settings-toggle::after {
  transform: translateX(19px);
}

/* SECURITY */

.security-setting {
  min-height: 82px;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid #ddd9d2;
}

.security-setting:last-child {
  border-bottom: 1px solid #ddd9d2;
}

.security-setting strong {
  font-size: 0.7rem;
}

.security-setting p {
  margin: 0.35rem 0 0;
  font-size: 0.6rem;
  line-height: 1.5;
  color: #858078;
}

/* PAYMENT PROFILE */

.payment-profile-status {
  min-height: 125px;
  padding: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background-color: #f5f3ef;
  border: 1px solid #ddd9d2;
}

.payment-profile-status + .payment-profile-status {
  margin-top: 1rem;
}

.payment-profile-status > div {
  display: grid;
  gap: 0.35rem;
}

.payment-profile-status span {
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #918c84;
}

.payment-profile-status strong {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.payment-profile-status p {
  max-width: 600px;
  margin: 0;
  font-size: 0.59rem;
  line-height: 1.55;
  color: #858078;
}

/* RESPONSIVE SETTINGS */

@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-navigation {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .settings-navigation a {
    min-width: 180px;
    border-right: 1px solid #e0ddd7;
    border-bottom: none;
  }
}

@media (max-width: 650px) {
  .settings-topbar {
    display: block;
  }

  .settings-save-button {
    width: 100%;
    margin-top: 1.5rem;
  }

  .settings-section {
    padding: 1.5rem;
  }

  .employer-authorization-status {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .employer-authorization-status button {
    grid-column: 2;
    justify-self: start;
  }

  .security-setting,
  .payment-profile-status {
    display: block;
  }

  .security-setting button,
  .payment-profile-status button {
    margin-top: 1rem;
  }
}

/* =========================================
   MEMBERSHIP APPLICATION
   ========================================= */

.membership-application-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: #222222;
  background-color: #151515;
}

.membership-application-page *,
.membership-application-page *::before,
.membership-application-page *::after {
  box-sizing: border-box;
}

.membership-application-header {
  min-height: 88px;
  padding: 0 clamp(2rem, 5vw, 5rem);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.membership-header-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.membership-header-links a {
  padding-bottom: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 12, 12, 0.8);
}

.membership-header-links .membership-login-link {
  min-height: 42px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(12, 12, 12, 0.8);
}

.membership-application-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(560px, 1.15fr);
}

/* LEFT INTRODUCTION */

.membership-application-introduction {
  min-height: 100vh;
  padding:
    clamp(9rem, 14vh, 12rem)
    clamp(2.5rem, 6vw, 7rem)
    5rem;
  color: #ffffff;
  background:
    linear-gradient(
      rgba(10, 10, 12, 0.84),
      rgba(10, 10, 12, 0.96)
    ),
    url("../images/nationwide.jpg") center / cover no-repeat;
}

.membership-application-introduction h1 {
  max-width: 650px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.membership-introduction-text {
  max-width: 630px;
  margin: 2rem 0 3rem;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.membership-introduction-features {
  max-width: 650px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.membership-introduction-features article {
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.membership-introduction-features article > span {
  font-family: "Playfair Display", serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
}

.membership-introduction-features h2 {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.membership-introduction-features p {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

/* APPLICATION FORM */

.membership-application-form-wrapper {
  min-height: 100vh;
  padding:
    clamp(8rem, 12vh, 10rem)
    clamp(2rem, 5vw, 6rem)
    5rem;
  background-color: #f2f0eb;
}

.membership-form-heading {
  margin-bottom: 3rem;
}

.membership-form-heading > p {
  margin: 0 0 0.8rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #817c74;
}

.membership-form-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}

.membership-form-heading > span {
  margin-top: 0.8rem;
  display: block;
  font-size: 0.68rem;
  color: #88837b;
}

.membership-application-form {
  max-width: 900px;
}

.membership-application-form fieldset {
  margin: 0;
  padding: 2rem 0;
  border: none;
  border-top: 1px solid #cfcac2;
}

.membership-application-form legend {
  margin-bottom: 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.7rem;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
}

.membership-application-form legend span {
  font-size: 0.72rem;
  color: #99948c;
}

.membership-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.8rem;
}

.membership-field {
  display: grid;
}

.membership-field label {
  margin-bottom: 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #68635d;
}

.membership-field input,
.membership-field select,
.membership-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.76rem;
  color: #222222;
  background-color: rgba(255, 255, 255, 0.74);
  border: 1px solid #cec9c1;
  outline: none;
}

.membership-field input,
.membership-field select {
  min-height: 47px;
  padding: 0 0.9rem;
}

.membership-field textarea {
  min-height: 140px;
  padding: 1rem;
  line-height: 1.7;
  resize: vertical;
}

.membership-field input:focus,
.membership-field select:focus,
.membership-field textarea:focus {
  background-color: #ffffff;
  border-color: #55514b;
}

.membership-field-full {
  margin-top: 1.5rem;
}

/* ACKNOWLEDGMENTS */

.membership-checkbox {
  min-height: 85px;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  background-color: rgba(255, 255, 255, 0.68);
  border: 1px solid #d2cdc5;
  cursor: pointer;
}

.membership-checkbox + .membership-checkbox {
  margin-top: 0.75rem;
}

.membership-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.membership-checkbox input:checked + .permission-control {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.membership-checkbox input:checked + .permission-control::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #ffffff;
}

.membership-checkbox strong {
  font-size: 0.67rem;
  font-weight: 500;
  line-height: 1.6;
}

/* SUBMIT */

.membership-submit-area {
  padding-top: 2rem;
}

.membership-submit-area button {
  width: 100%;
  min-height: 52px;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #1a1a1a;
  border: 1px solid #1a1a1a;
  cursor: pointer;
}

.membership-submit-area p {
  margin: 0.8rem 0 0;
  font-size: 0.58rem;
  text-align: center;
  color: #918c84;
}

/* RESPONSIVE MEMBERSHIP APPLICATION */

@media (max-width: 1000px) {
  .membership-application-layout {
    grid-template-columns: 1fr;
  }

  .membership-application-introduction {
    min-height: auto;
  }

  .membership-application-form-wrapper {
    min-height: auto;
  }
}

@media (max-width: 650px) {
  .membership-application-header {
    min-height: 72px;
    padding: 0 1.25rem;
  }

  .membership-header-links > a:first-child {
    display: none;
  }

  .membership-application-introduction,
  .membership-application-form-wrapper {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .membership-form-grid {
    grid-template-columns: 1fr;
  }
}