.page-auth:is(.page-contact-seller, .page-contact-buyer) {
  background:
    radial-gradient(circle at 10% 12%, rgba(212, 167, 67, 0.08), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(11, 42, 91, 0.07), transparent 32%),
    linear-gradient(180deg, #F6F8FB 0%, #FFFFFF 48%, #F4F6F9 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}

/* Main Form Area: Centered, Viewport Fitted */
.pf-main {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h, 104px) + 16px);
  padding-bottom: 28px;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 42, 91, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 42, 91, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.pf-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   UNIFIED MASTER SPLIT CARD CONTAINER
   Merges Left Showcase Panel & Right Form into a single luxury frame
   ───────────────────────────────────────────────────────────── */
.pf-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: stretch;
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid #E2E8F0;
  box-shadow:
    0 24px 60px -12px rgba(11, 42, 91, 0.12),
    0 2px 8px rgba(11, 42, 91, 0.04);
  overflow: hidden;
}

/* Compact variant for Login / Register */
.pf-layout--auth {
  max-width: 1020px;
  margin: 0 auto;
  grid-template-columns: 350px minmax(0, 1fr);
}

/* ─────────────────────────────────────────────────────────────
   LEFT PANEL (Midnight Navy Brand Showcase Card)
   ───────────────────────────────────────────────────────────── */
.pf-panel {
  position: relative;
  overflow: hidden;
  padding: 30px 26px;
  color: #FFFFFF;
  background:
    radial-gradient(circle at 85% 15%, rgba(212, 167, 67, 0.18), transparent 35%),
    linear-gradient(160deg, #071938 0%, #0C2856 55%, #10326B 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pf-panel::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 60px;
  transform: rotate(25deg);
  pointer-events: none;
}

.pf-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
}

.pf-panel__icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #D4A743;
  color: #071938;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 4px 14px rgba(212, 167, 67, 0.35);
  flex-shrink: 0;
}

.pf-panel__tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #D2E2F5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.pf-panel__content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.pf-panel__kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #E2B955;
  margin-bottom: 8px;
}

.pf-panel__title {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.18;
  color: #FFFFFF;
  margin: 0 0 10px;
  letter-spacing: -0.4px;
}

.pf-panel__title em {
  font-style: italic;
  color: #E8BE59;
  font-weight: 800;
}

.pf-panel__desc {
  font-size: 13px;
  line-height: 1.55;
  color: #B4C6DA;
  margin: 0 0 20px;
}

/* Trust feature bullets */
.pf-panel__bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pf-panel__bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.pf-panel__bullet-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #E2B955;
  font-size: 13px;
}

/* Bottom switch seam */
.pf-panel__footer {
  position: relative;
  z-index: 2;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-panel__footer span {
  color: #8FA6BE;
}

.pf-panel__footer a {
  color: #E8BE59;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, transform 0.15s;
}

.pf-panel__footer a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

/* ─────────────────────────────────────────────────────────────
   RIGHT FORM SURFACE (Clean, Modern, Sophisticated)
   ───────────────────────────────────────────────────────────── */
.pf-card {
  background: #FFFFFF;
  padding: 28px 34px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pf-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.pf-card__kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #B38628;
  margin-bottom: 3px;
}

.pf-card__title {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #0B2A5B;
  margin: 0 0 3px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.pf-card__sub {
  font-size: 12.5px;
  color: #64748B;
  margin: 0;
}

.pf-card__secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 50px;
  background: #EAF8EE;
  border: 1px solid #BFE7CC;
  color: #178343;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Social Login + Divider */
.pf-auth-split {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pf-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(11, 42, 91, 0.03);
  white-space: nowrap;
}

.pf-google-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.pf-google-icon {
  width: 16px;
  height: 16px;
}

.pf-divider {
  flex: 1;
  display: flex;
  align-items: center;
}

.pf-divider::before,
.pf-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1.5px solid #E2E8F0;
}

.pf-divider span {
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  margin: 0 8px;
}

/* Section Header Bar */
.pf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 8px;
}

.pf-section-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0B2A5B;
  letter-spacing: 0.2px;
}

.pf-section-note {
  font-size: 11px;
  color: #64748B;
}

.pf-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 7px;
  position: relative;
}

.pf-section-divider::before,
.pf-section-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1.5px solid #E6EDF5;
}

.pf-section-divider span {
  padding: 0 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0B2A5B;
}

/* ─────────────────────────────────────────────────────────────
   BUSINESS TYPE RADIO SELECTOR: 3 SLEEK CARDS (Image 1 / Image 3)
   ───────────────────────────────────────────────────────────── */
.pf-btype-wrap {
  margin: 4px 0 12px;
}

.pf-btype-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pf-btype-title {
  font-size: 12px;
  font-weight: 800;
  color: #0B2A5B;
}

.pf-btype-sub {
  font-size: 11px;
  color: #64748B;
}

.pf-btype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pf-btype-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.pf-btype-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pf-btype-card:hover {
  border-color: #D4A743;
  background: #FFFFFF;
  transform: translateY(-1px);
}

.pf-btype-card.is-active,
.pf-btype-card:has(input[type="radio"]:checked) {
  border-color: #D4A743;
  background: #FFFDF9;
  box-shadow: 0 0 0 1.5px #D4A743, 0 4px 12px rgba(212, 167, 67, 0.12);
}

.pf-btype-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #0B2A5B;
  color: #E2B955;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.pf-btype-card__info {
  flex: 1;
  min-width: 0;
}

.pf-btype-card__title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0B2A5B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pf-btype-card__desc {
  font-size: 10.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.pf-btype-card__arrow {
  color: #D4A743;
  font-size: 11px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   IN-BOX FLOATING LABEL FIELD CONTAINER (Matching Image 3 & Image 2)
   High-end fintech / enterprise luxury standard
   ───────────────────────────────────────────────────────────── */
.pf-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50px;
  padding: 6px 12px 5px;
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  background: #F8FAFC;
  transition: all 0.18s ease;
}

.pf-field__label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  margin-bottom: 2px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pf-field__input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
  padding: 0;
  line-height: 1.3;
}

.pf-field__input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.pf-field__select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  padding: 0 16px 0 4px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 1.3;
}

.pf-field__select:invalid {
  color: #94A3B8;
  font-weight: 400;
}

.pf-field__select option {
  color: #0F172A;
  font-weight: 500;
  background: #FFFFFF;
  padding-left: 12px;
}

.pf-field__select option[value=""] {
  color: #94A3B8;
  font-weight: 400;
}

.pf-field--select::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 8px;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748B' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.pf-field:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.pf-field:focus-within {
  border-color: #D4A743;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 167, 67, 0.14);
}

.pf-field--highlight {
  border-color: #D4A743;
  background: #FFFDF9;
}

.pf-field--error,
.cbf-field--error,
.lyb-field--error {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Phone control inside field */
.pf-phone-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pf-phone-prefix {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
  border-right: 1.5px solid #CBD5E1;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.pf-phone-flag {
  font-size: 15px;
  line-height: 1;
}

.pf-phone-code {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

/* ─────────────────────────────────────────────────────────────
   CUSTOM PHONE DROPDOWN (Flag SVG + Calling Code)
   ───────────────────────────────────────────────────────────── */
.pf-phone-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  outline: none;
  font-family: inherit;
}

.pf-phone-trigger:hover,
.pf-phone-trigger:focus,
.pf-phone-trigger.is-open {
  border-color: #D4A743;
  box-shadow: 0 0 0 2px rgba(212, 167, 67, 0.18);
  background: #FFFDF9;
}

.pf-phone-flag-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.pf-svg-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-phone-dial {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1;
}

.pf-phone-arrow {
  color: #64748B;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  font-size: 9px;
}

.pf-phone-trigger.is-open .pf-phone-arrow {
  transform: rotate(180deg);
}

/* Floating Phone Popover */
.pf-phone-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(11, 42, 91, 0.18);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: pfDropFade 0.16s ease-out;
}

.pf-phone-popover.is-open {
  display: flex;
}

.pf-popover-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.pf-popover-search i,
.pf-popover-search svg {
  color: #94A3B8;
  font-size: 12px;
  flex-shrink: 0;
}

.pf-popover-search input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  padding: 0;
}

.pf-phone-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pf-phone-list::-webkit-scrollbar {
  width: 5px;
}
.pf-phone-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
}
.pf-phone-list::-webkit-scrollbar-thumb:hover {
  background: #D4A743;
}

.pf-phone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pf-phone-item:hover,
.pf-phone-item.is-focused {
  background: #F1F5F9;
}

.pf-phone-item.is-selected {
  background: #EBF3FC;
  color: #0B2A5B;
  font-weight: 700;
}

.pf-phone-item__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.pf-phone-item__name {
  font-size: 12px;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-phone-item.is-selected .pf-phone-item__name {
  color: #0B2A5B;
  font-weight: 700;
}

.pf-phone-item__code {
  font-size: 11.5px;
  font-weight: 700;
  color: #B38628;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   CUSTOM SELECT DROPDOWNS (Country, State, City)
   ───────────────────────────────────────────────────────────── */
.pf-custom-select {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.pf-custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  outline: none;
}

.pf-custom-select__value {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.pf-custom-select__value.is-placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.pf-custom-select__arrow {
  color: #64748B;
  font-size: 10px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pf-custom-select.is-open {
  border-color: #D4A743 !important;
  background: #FFFDF9 !important;
  box-shadow: 0 0 0 1.5px #D4A743, 0 3px 10px rgba(212, 167, 67, 0.12) !important;
}

.pf-custom-select.is-open .pf-custom-select__arrow {
  transform: rotate(180deg);
}

.pf-custom-select__menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(11, 42, 91, 0.18);
  z-index: 180;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: pfDropFade 0.15s ease-out;
}

.pf-custom-select.is-open .pf-custom-select__menu {
  display: flex;
}

.pf-custom-select__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.pf-custom-select__search i {
  color: #94A3B8;
  font-size: 11px;
}

.pf-custom-select__input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  padding: 0;
}

.pf-custom-select__options {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pf-custom-select__options::-webkit-scrollbar {
  width: 5px;
}
.pf-custom-select__options::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
}
.pf-custom-select__options::-webkit-scrollbar-thumb:hover {
  background: #D4A743;
}

.pf-custom-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pf-custom-select__option:hover,
.pf-custom-select__option.is-focused {
  background: #F1F5F9;
  color: #0B2A5B;
}

.pf-custom-select__option.is-selected {
  background: #EBF3FC;
  color: #0B2A5B;
  font-weight: 700;
}

.pf-custom-select__option.is-selected::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #B38628;
  font-size: 11px;
  margin-left: 8px;
}

.pf-custom-select__empty {
  padding: 12px 10px;
  text-align: center;
  color: #94A3B8;
  font-size: 12px;
}

@keyframes pfDropFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pf-phone-caret {
  width: 6px;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748B' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Password Toggle */
.pf-password-toggle {
  background: none;
  border: none;
  padding: 0 4px;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.pf-password-toggle:hover {
  color: #0B2A5B;
}

/* Compact Textareas */
.pf-field--textarea {
  min-height: 52px;
  justify-content: flex-start;
  padding: 6px 12px 6px;
}

.pf-field__textarea {
  width: 100%;
  min-height: 34px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #0F172A;
  resize: none;
  padding: 0;
  line-height: 1.35;
}

/* ─────────────────────────────────────────────────────────────
   GRID SYSTEMS (Tight Vertical Rhythm to Fit Desktop Viewport)
   ───────────────────────────────────────────────────────────── */
.pf-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.pf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-bottom: 8px;
}

.pf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 10px;
  margin-bottom: 8px;
}

.pf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 10px;
  margin-bottom: 8px;
}

.pf-grid-full {
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────────
   ROLE PILLS ("ARE YOU A")
   ───────────────────────────────────────────────────────────── */
.pf-role-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pf-role-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.pf-role-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pf-role-pill__label {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #0B2A5B;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.pf-role-pill:hover .pf-role-pill__label {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.pf-role-pill input[type="radio"]:checked + .pf-role-pill__label {
  background: #0B2A5B;
  color: #FFFFFF;
  border-color: #0B2A5B;
  box-shadow: 0 3px 8px rgba(11, 42, 91, 0.16);
}

/* Are You A: 2x2 Radio Button Grid (2 rows, 2 options per row) */
.pf-role-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pf-role-box__title {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  margin-bottom: 6px;
  display: block;
}

.pf-role-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.pf-role-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  min-width: 0;
}

.pf-role-card input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: #0B2A5B;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.pf-role-card__label {
  font-size: 11px;
  font-weight: 700;
  color: #0B2A5B;
  white-space: nowrap;
}

.pf-role-card:hover {
  border-color: #D4A743;
  background: #FFFDF9;
}

.pf-role-card:has(input[type="radio"]:checked) {
  border-color: #D4A743;
  background: #FFFDF9;
  box-shadow: 0 0 0 1px #D4A743, 0 2px 6px rgba(212, 167, 67, 0.1);
}


/* ─────────────────────────────────────────────────────────────
   ACTION BAR & BUTTONS
   ───────────────────────────────────────────────────────────── */
.pf-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pf-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #E6AF3A 0%, #D49826 100%);
  color: #071938;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 152, 38, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.pf-submit-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(212, 152, 38, 0.36);
  transform: translateY(-1px);
}

.pf-submit-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.pf-submit-btn:hover svg {
  transform: translateX(3px);
}

/* Helper Row & Links */
.pf-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin: 6px 0 10px;
}

.pf-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  cursor: pointer;
  user-select: none;
}

.pf-link {
  color: #B38628;
  font-weight: 700;
  text-decoration: none;
}

.pf-link:hover {
  text-decoration: underline;
}

.pf-password-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748B;
  margin: -2px 0 6px;
}

.pf-password-note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #94A3B8;
}

.pf-terms-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #475569;
  margin: 4px 0 8px;
  cursor: pointer;
  user-select: none;
}

.pf-terms-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #0B2A5B;
  cursor: pointer;
}

/* Feedback & Auth Errors */
.pf-feedback,
.cbf-feedback,
.lyb-feedback {
  margin-top: 8px;
  font-size: 12.5px;
  border-radius: 7px;
  display: none;
  padding: 7px 12px;
}

.pf-feedback--error,
.cbf-feedback--error,
.lyb-feedback--error,
.auth-error {
  display: block;
  color: #B3261E;
  background: #FDF2F2;
  border: 1px solid #F9D7D7;
  padding: 7px 12px;
  border-radius: 7px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.pf-feedback--success,
.cbf-feedback--success,
.lyb-feedback--success {
  display: block;
  color: #126330;
  background: #EAF7EE;
  border: 1px solid #BEE6CC;
  padding: 7px 12px;
  border-radius: 7px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}



/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN (Smooth stacking on tablet & mobile)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .pf-layout,
  .pf-layout--auth {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .pf-panel {
    border-radius: 16px 16px 0 0;
  }

  .pf-card {
    border-radius: 0 0 16px 16px;
    padding: 24px 20px;
  }

  .pf-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-btype-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pf-grid-4,
  .pf-grid-3,
  .pf-grid-2 {
    grid-template-columns: 1fr;
  }

  .pf-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pf-auth-split {
    flex-direction: column;
    align-items: stretch;
  }

  .pf-google-btn,
  .pf-submit-btn {
    width: 100%;
  }
}


/* contact-buyer-form-layout */
/* Company name stays compact; business address occupies the removed website/designation space. */
.pf-company-address-row > .pf-control:last-child {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .pf-company-address-row > .pf-control:last-child {
    grid-column: auto;
  }
}

.pf-role-message-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 10px;
  margin-bottom: 8px;
  align-items: stretch;
}

/* Stack the role/message row on mobile. */
@media (max-width: 640px) {
  .pf-main {
    padding-top: calc(var(--header-h, 104px) + 12px);
    padding-bottom: 18px;
  }

  .pf-container {
    padding: 0 12px;
  }

  .pf-layout,
  .pf-layout--auth {
    display: block;
    border-radius: 14px;
  }

  .pf-panel {
    padding: 22px 18px;
  }

  .pf-panel__title {
    font-size: 25px;
  }

  .pf-panel__desc {
    font-size: 12px;
  }

  .pf-panel__bullets {
    gap: 6px;
  }

  .pf-panel__bullet {
    padding: 8px 10px;
    font-size: 11px;
  }

  .pf-card {
    padding: 20px 16px 22px;
  }

  .pf-card__header {
    display: block;
  }

  .pf-card__secure {
    display: inline-flex;
    margin-top: 8px;
  }

  .pf-card form > .pf-role-message-row {
    display: block;
    margin-bottom: 8px;
  }

  .pf-card form > .pf-role-message-row > * {
    width: 100%;
    margin-bottom: 8px;
  }

  .pf-role-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .pf-role-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .pf-panel__top {
    align-items: flex-start;
  }

  .pf-panel__tag {
    font-size: 9px;
    padding-inline: 8px;
  }
}


/* contact-buyer-form-listing */
.pf-listing-context {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #eadfbf;
  border-radius: 9px;
  background: #fffdf7;
  color: #0b2a5b;
  font-size: 12px;
}

.pf-listing-context__id {
  color: #a87518;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pf-listing-context__separator { color: #b88722; }
.pf-listing-context__headline { font-size: 14px; font-weight: 900; }

@media (max-width: 520px) {
  .pf-listing-context {
    display: block;
    padding: 11px 12px;
  }

  .pf-listing-context__id {
    display: inline;
    margin-right: 6px;
    font-size: 13px;
  }

  .pf-listing-context__headline {
    display: inline;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
}


/* contact-buyer-form-seller-copy */
.pf-panel__bullet-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.pf-panel__bullet-copy strong {
  color: #f1f5f9;
  font-size: 12.5px;
  line-height: 1.25;
}

.pf-panel__bullet-copy small {
  color: #b4c6da;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.35;
}

/* Static presentation extracted from contact-buyer-form.html. */
body .contact-buyer-form-inline-1 { display:flex; align-items:center; width:100%; }
body .contact-buyer-form-inline-2 { min-height:unset; height:100%; }
body .contact-buyer-form-inline-3 { min-height:30px; }


/* Integration with the existing phone widget and server validation. */
:is(.page-contact-seller, .page-contact-buyer) .pf-field .iti { width: 100%; }
:is(.page-contact-seller, .page-contact-buyer) .pf-field .iti__selected-flag { background: transparent; }
:is(.page-contact-seller, .page-contact-buyer) .pf-field:focus-within { z-index: 3; }
/* Grid cells may grow for feedback; their bordered controls must not stretch. */
:is(.page-contact-seller, .page-contact-buyer) .pf-control { min-width: 0; align-self: start; }
:is(.page-contact-seller, .page-contact-buyer) .pf-control > .contact-buyer-form-inline-2 {
  height: auto;
  min-height: 104px;
}
:is(.page-contact-seller, .page-contact-buyer) .pf-field-feedback .error,
:is(.page-contact-seller, .page-contact-buyer) .pf-field-feedback .pf-server-error {
  color: #b3261e;
  font-size: 11px;
  line-height: 1.4;
  margin: 5px 2px 0;
}
:is(.page-contact-seller, .page-contact-buyer) .pf-field, :is(.page-contact-seller, .page-contact-buyer) .pf-card { min-width: 0; }
:is(.page-contact-seller, .page-contact-buyer) .pf-google-btn:focus-visible,
:is(.page-contact-seller, .page-contact-buyer) .pf-submit-btn:focus-visible,
:is(.page-contact-seller, .page-contact-buyer) .pf-password-toggle:focus-visible { outline: 2px solid #b38628; outline-offset: 3px; }
@media (min-width: 1041px) and (max-width: 1120px) {
  :is(.page-contact-seller, .page-contact-buyer) .pf-role-message-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  :is(.page-contact-seller, .page-contact-buyer) .pf-role-grid-2x2 { grid-template-columns: 1fr; }
}
