/* anashaddadfit.com: brand partnerships (/partnerships/, /ar/partnerships/).
   Loaded after site.css, which supplies the fonts, colour tokens, glow, grain,
   top bar, buttons and the site footer. Mobile first. Logical properties so
   the Arabic page mirrors. Every class starts with p- (no clash with site.css). */

.p-page {
  --wrap: 560px;
}

.p-main {
  padding-top: 26px;
}

/* ---------- Opening ---------- */
.p-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.p-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.3;
}
.p-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-2);
}
.p-hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.p-lead {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Sections ---------- */
.p-form {
  margin-top: 44px;
}
.p-sec {
  padding: 28px 0 6px;
  border-top: 1px solid var(--line);
}
.p-h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.p-num {
  color: var(--mut);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Fields ---------- */
.p-field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.p-label {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.4;
}
.p-sublabel {
  display: block;
  margin: 0 0 7px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.p-optional {
  color: var(--mut);
  font-weight: 400;
}
.p-input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px+: no zoom on iPhone */
  line-height: 1.4;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.p-input::placeholder {
  color: var(--mut);
  opacity: 1;
}
.p-input:hover {
  border-color: rgba(245, 241, 234, 0.3);
}
.p-input:focus-visible {
  outline: none;
  border-color: var(--ink);
  background: var(--card-on);
  box-shadow: 0 0 0 3px rgba(245, 241, 234, 0.14);
}
[dir="rtl"] .p-input[type="email"] {
  text-align: right;
}
.p-area {
  min-height: 120px;
  resize: vertical;
}
.p-input[aria-invalid="true"] {
  border-color: var(--err);
}
.p-err {
  margin: 8px 0 0;
  color: var(--err);
  font-size: 14.5px;
  line-height: 1.4;
}
.p-err[hidden] {
  display: none;
}

/* Date inputs: the native picker, styled like the other fields */
.p-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.p-date {
  min-width: 0;
}
.p-input[type="date"] {
  min-width: 0;
  color-scheme: dark;
}
.p-input[type="date"]::-webkit-date-and-time-value {
  text-align: start;
}
.p-flex {
  margin-top: 12px;
}

/* ---------- Choices (radio and checkbox): large tappable rows ---------- */
.p-opts {
  display: grid;
  gap: 8px;
}
.p-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.p-opt input {
  position: absolute;
  inset-inline-start: 16px;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.p-mark {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(245, 241, 234, 0.4);
  border-radius: 50%;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.p-opt input[type="checkbox"] + .p-mark {
  border-radius: 6px;
}
.p-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
  transform: scale(0);
  transition: transform var(--t-fast) var(--ease);
}
.p-opt input[type="checkbox"] + .p-mark::after {
  inset: 3px 5px 5px;
  border-radius: 0;
  background: none;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
}
@media (hover: hover) {
  .p-opt:hover {
    border-color: rgba(245, 241, 234, 0.32);
    color: var(--ink);
  }
}
.p-opt:has(input:checked) {
  border-color: var(--line-on);
  background: var(--card-on);
  color: var(--ink);
}
.p-opt input:checked + .p-mark {
  border-color: var(--ink);
  background: var(--ink);
}
.p-opt input:checked + .p-mark::after {
  transform: scale(1);
}
.p-opt input[type="checkbox"]:checked + .p-mark::after {
  transform: rotate(45deg) scale(1);
}
.p-opt:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.p-group[aria-invalid="true"] .p-opt {
  border-color: rgba(240, 160, 139, 0.55);
}

/* ---------- Phone: country code + number ---------- */
.p-phone {
  position: relative;
  display: flex;
  gap: 8px;
}
.p-cc-native {
  flex: 0 0 116px;
  width: 116px;
}
.p-cc-native[hidden] {
  display: none;
}
.p-tel {
  flex: 1 1 auto;
  min-width: 0;
}
.p-cc-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 104px;
  min-height: 54px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.p-cc-btn:hover {
  border-color: rgba(245, 241, 234, 0.3);
}
.p-cc-btn:focus-visible,
.p-cc-btn[aria-expanded="true"] {
  outline: none;
  border-color: var(--ink);
  background: var(--card-on);
  box-shadow: 0 0 0 3px rgba(245, 241, 234, 0.14);
}
.p-cc-btn svg {
  width: 14px;
  height: 14px;
  color: var(--mut);
  transition: transform var(--t-fast);
}
.p-cc-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.p-cc-pop {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 30;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #181716;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.p-cc-pop[hidden] {
  display: none;
}
.p-cc-search {
  min-height: 48px;
  margin-bottom: 6px;
  border-radius: 12px;
}
[dir="rtl"] .p-cc-search {
  direction: rtl;
}
.p-cc-list {
  max-height: min(300px, 45vh);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.p-cc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.3;
  cursor: pointer;
}
[dir="rtl"] .p-cc-list li {
  direction: rtl;
}
.p-cc-list li .d {
  flex: 0 0 auto;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.p-cc-list li[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
}
.p-cc-list li.on {
  background: var(--tile-on);
  color: var(--ink);
}
.p-cc-list li.none {
  justify-content: center;
  color: var(--mut);
  cursor: default;
}

/* ---------- Honeypot: off-screen for people, there for bots ---------- */
.p-hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Send ---------- */
.p-submit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.p-ts:empty {
  display: none;
}
.p-send {
  width: 100%;
}
.p-send[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}
.p-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(240, 160, 139, 0.4);
  border-radius: 12px;
  color: var(--err);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.p-status[hidden] {
  display: none;
}
.p-privacy {
  margin: 0;
  color: var(--mut);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Sent ---------- */
.p-done {
  margin-top: 44px;
  padding: 32px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--card);
  text-align: center;
}
.p-done:focus {
  outline: none;
}
.p-done[hidden] {
  display: none;
}
.p-done-ic {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
}
.p-done-ic svg {
  width: 26px;
  height: 26px;
}
.p-done-h {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.p-done-p {
  margin: 8px 0 0;
  color: var(--ink-2);
}

/* ---------- Arabic ---------- */
[dir="rtl"] .p-hero h1,
[dir="rtl"] .p-h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

@media (prefers-reduced-motion: no-preference) {
  .p-done:not([hidden]) {
    animation: scr-in var(--t) var(--ease) both;
  }
}

@media (min-width: 560px) {
  .p-opts.p-two {
    grid-template-columns: 1fr 1fr;
  }
}
