/* ==========================================================
   RITM.HOME — Partner Form  — Design: ritm.group
   ========================================================== */

/* ── Fonts ── */
@font-face {
  font-family: GothamPro;
  src: url('/fonts/GothamPro-Light.woff') format('woff');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: GothamPro;
  src: url('/fonts/GothamPro-Medium.woff') format('woff');
  font-weight: 500; font-style: normal;
}
@font-face {
  font-family: GothamPro;
  src: url('/fonts/GothamPro-Bold.woff') format('woff');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: eUkraineHead;
  src: url('/fonts/e-UkraineHead-Thin.woff2') format('woff2');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: eUkraineHead;
  src: url('/fonts/e-UkraineHead-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: eUkraineHead;
  src: url('/fonts/e-UkraineHead-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: eUkraineHead;
  src: url('/fonts/e-UkraineHead-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Raleway;
  src: url('/fonts/Raleway-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Raleway;
  src: url('/fonts/Raleway-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Raleway;
  src: url('/fonts/Raleway-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Raleway;
  src: url('/fonts/Raleway-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Raleway;
  src: url('/fonts/Raleway-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Raleway;
  src: url('/fonts/Raleway-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ── Reset ── */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  --dark:         #1a1a1a;
  --purple-start: #6b2090;
  --purple-end:   #cc72dd;
  --white:        #ffffff;
  --white-60:     rgba(255,255,255,0.6);
  --white-40:     rgba(255,255,255,0.4);
  --white-15:     rgba(255,255,255,0.15);

  --font-body:  Raleway, GothamPro, Arial, sans-serif;
  --font-head:  eUkraineHead, Montserrat, sans-serif;
  --font-label: GothamPro, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Honeypot ── */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ──────────────────────────────────────────
   PAGE SHELL
────────────────────────────────────────── */

.contact-page {
  position: relative;
  min-height: 100vh;
  background:
    var(--dark)
    image-set(
      url('/images/hero-bg.webp') type('image/webp'),
      url('/images/hero-bg.jpeg') type('image/jpeg')
    )
    50% 60% / cover no-repeat;
  display: flex;
  flex-direction: column;
}

.contact-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  pointer-events: none;
}

.container {
  box-sizing: content-box;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.08vw, 40px);
}

/* ──────────────────────────────────────────
   NAV
────────────────────────────────────────── */

.page-nav {
  position: relative;
  z-index: 10;
}

.page-nav .container {
  display: flex;
  align-items: center;
  padding-top: clamp(14px, 1.25vw, 24px);
  padding-bottom: clamp(14px, 1.25vw, 24px);
}

.nav-logo img {
  width: clamp(120px, 11.46vw, 200px);
  height: auto;
}

/* ──────────────────────────────────────────
   HERO BODY
────────────────────────────────────────── */

.contact-body {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(40px, 5vw, 100px) 0 clamp(60px, 6vw, 120px);
}

.contact-body .container {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5.2vw, 100px);
  width: 100%;
}

.contact-left {
  flex: 1;
  min-width: 0;
}

.contact-label {
  font-family: var(--font-label);
  font-size: clamp(11px, 0.83vw, 14px);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-end);
  margin-bottom: clamp(12px, 1.04vw, 20px);
}

.contact-heading {
  font-family: var(--font-head);
  font-size: clamp(40px, 4.69vw, 90px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: clamp(20px, 2.08vw, 40px);
}

.contact-desc {
  font-family: var(--font-label);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--white-60);
  max-width: 420px;
}

/* ──────────────────────────────────────────
   INFO BULLETS (below desc)
────────────────────────────────────────── */

.contact-info {
  margin-top: clamp(24px, 2vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-label);
  font-size: clamp(12px, .9vw, 14px);
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.5;
}

.contact-info-dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 5px;
}
.contact-info-dot--yes  { background: var(--purple-end); }
.contact-info-dot--info { background: rgba(255,255,255,.4); }
.contact-info-dot--no   { background: rgba(255,255,255,.25); }

.contact-info-item strong { color: var(--white); font-weight: 500; }

.contact-hours {
  margin-top: clamp(20px, 1.5vw, 28px);
  font-family: var(--font-label);
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 300;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.contact-hours svg {
  width: 13px; height: 13px;
  flex-shrink: 0; margin-top: 2px;
  opacity: .5;
}

/* ──────────────────────────────────────────
   CARD
────────────────────────────────────────── */

.contact-card {
  flex: 0 0 clamp(320px, 33.33vw, 620px);
  background: linear-gradient(140deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: clamp(20px, 1.875vw, 36px);
  box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.05) inset;
  padding: clamp(28px, 2.5vw, 48px);
}

.card-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 1.875vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -.3px;
  margin-bottom: clamp(20px, 2.08vw, 36px);
}

/* ──────────────────────────────────────────
   FORM
────────────────────────────────────────── */

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; min-width: 0; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* Section divider */
.form-section-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-top: 4px;
}

/* Inputs & selects — pill shape */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: clamp(14px, 1.04vw, 20px) clamp(22px, 1.77vw, 34px);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.04vw, 17px);
  color: var(--white);
  outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,.35); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--purple-end); }
.form-input.error,
.form-select.error,
.form-textarea.error { border-color: #e05555; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.45)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right clamp(16px, 1.25vw, 24px) center;
  padding-right: clamp(38px, 3vw, 54px);
  cursor: pointer;
}
.form-select option { background: #2a2a2a; color: var(--white); }

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
  border-radius: 24px;
}

.form-error {
  font-family: var(--font-label);
  font-size: .72rem;
  color: #f08080;
  min-height: 14px;
  padding-left: clamp(14px, 1.04vw, 22px);
}

.fg-hint-dark {
  font-family: var(--font-label);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  padding-left: clamp(14px, 1.04vw, 22px);
  margin-top: 4px;
  display: block;
}

/* ──────────────────────────────────────────
   PHONE PICKER — pill style
────────────────────────────────────────── */

.pph {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: 0 clamp(16px, 1.25vw, 22px);
  transition: border-color .2s;
  position: relative;
}
.pph:focus-within { border-color: var(--purple-end); }
.pph.pph-err       { border-color: #e05555; }

.pph-cc {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; user-select: none;
  border-right: 1px solid rgba(255,255,255,.15);
  padding: clamp(14px, 1.04vw, 20px) 12px clamp(14px, 1.04vw, 20px) 0;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
}
.pph-cc:focus { outline: none; }
.pph-cc__flag { font-size: 1rem; line-height: 1; }
.pph-cc__dial { font-size: .9rem; font-weight: 500; color: var(--white); }
.pph-cc__arrow {
  color: rgba(255,255,255,.45);
  transition: transform .2s;
  flex-shrink: 0;
}
.pph-cc[aria-expanded="true"] .pph-cc__arrow { transform: rotate(180deg); }

.pph-num {
  flex: 1;
  border: none; background: transparent;
  padding: clamp(14px, 1.04vw, 20px) 0;
  font-size: clamp(14px, 1.04vw, 17px);
  font-family: var(--font-body);
  color: var(--white);
  outline: none;
  min-width: 0;
}
.pph-num::placeholder { color: rgba(255,255,255,.35); }

.pph-menu {
  display: none; position: absolute;
  top: calc(100% + 6px); left: 0;
  width: 240px; max-height: 200px; overflow-y: auto;
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 200;
}
.pph-menu.open { display: block; }
.pph-menu.flip-up { top: auto; bottom: calc(100% + 6px); }

.pph-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer;
  font-size: .83rem; transition: background .15s;
}
.pph-opt:hover, .pph-opt.pph-active { background: rgba(255,255,255,.08); }
.pph-opt__flag  { font-size: .95rem; flex-shrink: 0; }
.pph-opt__name  { flex: 1; color: var(--white); }
.pph-opt__dial  { color: rgba(255,255,255,.45); font-size: .8rem; font-weight: 500; flex-shrink: 0; }

/* ──────────────────────────────────────────
   SUBMIT BUTTON
────────────────────────────────────────── */

.form-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: linear-gradient(90deg, var(--purple-start) 0%, var(--purple-end) 100%);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: clamp(16px, 1.25vw, 22px) 32px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.04vw, 17px);
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 4px;
}
.form-submit:hover:not(:disabled) { opacity: .85; }
.form-submit:disabled { opacity: .5; cursor: not-allowed; }

.btn-arrow { transition: transform .2s; }
.form-submit:hover .btn-arrow { transform: translateX(4px); }

.spin { animation: spn 1s linear infinite; width: 20px; height: 20px; }
@keyframes spn { to { transform: rotate(360deg); } }

/* Privacy */
.form-privacy {
  font-family: var(--font-label);
  font-size: clamp(10px, .73vw, 11px);
  color: rgba(255,255,255,.28);
  text-align: center;
  line-height: 1.6;
  margin-top: 4px;
}

/* ── Messages ── */
#form-message {
  margin-top: 10px;
  font-family: var(--font-label);
  font-size: .82rem;
  text-align: center;
}
.form-message--error   { color: #f08080; }
.form-message--success { color: var(--purple-end); }

/* ── Success overlay ── */
.form-success {
  display: none; flex-direction: column;
  align-items: center; text-align: center;
  gap: 16px; padding: 20px 0;
}
.form-success.visible { display: flex; }
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
  display: flex; align-items: center; justify-content: center;
}
.form-success-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 1.875vw, 32px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}
.form-success-text {
  font-family: var(--font-label);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.7;
}

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */

@media (max-width: 1024px) {
  .contact-body .container { gap: 48px; }
  .contact-card { flex-basis: clamp(300px, 45vw, 520px); }
}

@media (max-width: 768px) {
  .contact-body { padding: 40px 0 60px; align-items: flex-start; }
  .contact-body .container { flex-direction: column; gap: 40px; }
  .contact-left { max-width: 100%; }
  .contact-heading { font-size: clamp(36px, 9vw, 60px); }
  .contact-desc { max-width: 100%; }
  .contact-card { flex-basis: auto; width: 100%; }
}

@media (max-width: 480px) {
  .contact-heading { font-size: clamp(32px, 10vw, 48px); }
  .form-row { flex-direction: column; gap: 14px; }
  .contact-card { padding: 24px 20px; }
}
