/* Standalone stylesheet — apartment-owner-form.php.
   Self-contained on purpose (values copied from main.css, not shared) so this
   page can move to a different domain without dragging theme CSS along.
   Design system: deep navy + gold, airy cards, rounded outlined fields. */

:root {
  --navy: #1B2A3D;
  --navy-deep: #131E2B;
  --gold: #F2C94C;
  --gold-soft: #FAF1D9;
  --gold-text: #7A641C;
  --bg: #EEF2F7;
  --surface: #FFFFFF;
  --border: #DFE6EF;
  --muted: #7C8899;
  --whatsapp: #25D366;
  --danger: #D64545;
  --danger-bg: #FDEDED;
  --success-bg: #EAF7EE;
  --success-text: #2E7D4F;
  --radius: 14px;
}

* { box-sizing: border-box; }

body.isr-landing-standalone {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.isr-apt-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.isr-apt-logo { text-align: center; margin-bottom: 16px; }
.isr-apt-logo img { max-height: 56px; width: auto; }

.isr-apt-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 0 0 4px;
}
.isr-apt-subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 18px;
}

/* Agent bar — white pill row: identity + gold contact CTA */
.isr-apt-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(27, 42, 61, 0.05);
}
.isr-apt-agent__id { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.isr-apt-agent__photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.isr-apt-agent__info { min-width: 0; }
.isr-apt-agent__name { font-weight: 800; font-size: 15px; color: var(--navy); }
.isr-apt-agent__title { font-size: 12px; color: var(--muted); }
.isr-apt-agent__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Round contact buttons (WhatsApp + phone) */
.isr-apt-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.isr-apt-contact-btn svg { display: block; }
.isr-apt-contact-btn--wa {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}
.isr-apt-contact-btn--tel {
  background: var(--navy);
  color: #fff;
}
.isr-apt-contact-btn:hover { transform: translateY(-1px); }
.isr-apt-contact-btn:active { transform: translateY(0); opacity: 0.85; }
.isr-apt-contact-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.isr-apt-agent__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(242, 201, 76, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.isr-apt-agent__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(242, 201, 76, 0.5); }
.isr-apt-agent__cta svg { display: block; }

/* Form card */
.isr-apt-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(27, 42, 61, 0.06);
}

.isr-apt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Stepper */
.isr-apt-steps { margin-bottom: 4px; }
.isr-apt-steps__label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 12px;
}
.isr-apt-steps__list {
  position: relative;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}
.isr-apt-steps__list::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: var(--border);
}
.isr-apt-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.isr-apt-steps__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: var(--surface);
  border: 2px solid var(--border);
}
.isr-apt-steps__name {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.isr-apt-steps__item--active .isr-apt-steps__dot {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.4);
}
.isr-apt-steps__item--active .isr-apt-steps__name { color: var(--navy); font-weight: 800; }
.isr-apt-steps__item--done .isr-apt-steps__dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.isr-apt-steps__item--done .isr-apt-steps__name { color: var(--navy); }

/* Steps */
.isr-apt-step { display: flex; flex-direction: column; gap: 14px; }
.isr-apt-step[hidden] { display: none; }
.isr-apt-step__chip {
  align-self: flex-start;
  background: var(--gold-soft);
  color: var(--gold-text);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 800;
}
.isr-apt-step__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.isr-apt-media-pitch {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
}

/* Step navigation */
.isr-apt-nav {
  display: flex;
  gap: 10px;
}
.isr-apt-nav .isr-apt-btn { flex: 1; }
.isr-apt-btn--ghost {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--border);
}
.isr-apt-btn__arrow { display: block; }

.isr-apt-field { display: flex; flex-direction: column; gap: 6px; }
.isr-apt-field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.isr-apt-req { color: var(--danger); }

.isr-apt-field input[type="text"],
.isr-apt-field input[type="tel"],
.isr-apt-field input[type="number"],
.isr-apt-field select {
  height: 46px;
  padding: 0 12px;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
  width: 100%;
  font-family: inherit;
}
.isr-apt-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237C8899' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 34px;
}
.isr-apt-field input:focus,
.isr-apt-field select:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

/* Media upload zones (step 4) */
.isr-apt-media-field {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.isr-apt-media-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.isr-apt-media-zone__caption { font-size: 14px; font-weight: 600; color: var(--navy); }

.isr-apt-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.isr-apt-dropzone:active { background: var(--gold-soft); }
.isr-apt-dropzone:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.isr-apt-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.isr-apt-dropzone__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.isr-apt-dropzone__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.isr-apt-dropzone__title { font-size: 15px; font-weight: 800; color: var(--navy); }
.isr-apt-dropzone__hint { font-size: 12px; color: var(--muted); }
.isr-apt-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Upload status rows */
.isr-apt-media-list { display: flex; flex-direction: column; gap: 8px; }
.isr-apt-media-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 10px;
}
.isr-apt-media-row--ok {
  background: var(--success-bg);
  border-color: #C9EBD3;
}
.isr-apt-media-row--error {
  background: var(--danger-bg);
  border-color: #F6C8C8;
}
.isr-apt-media-row__tile {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 8px;
}
.isr-apt-media-row--ok .isr-apt-media-row__tile,
.isr-apt-media-row--error .isr-apt-media-row__tile { background: #fff; }
.isr-apt-media-row__thumb {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}
.isr-apt-media-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.isr-apt-media-row__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.isr-apt-media-row__meta { font-size: 12px; color: var(--muted); }
.isr-apt-media-row--ok .isr-apt-media-row__meta {
  color: var(--success-text);
  font-weight: 700;
}
.isr-apt-media-row--error .isr-apt-media-row__meta { color: var(--danger); }

.isr-apt-media-error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }

.isr-apt-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.isr-apt-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 16px;
}
.isr-apt-success p { margin: 4px 0; }

/* Buttons — 48px+ touch target throughout */
.isr-apt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-width: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.isr-apt-btn:active { opacity: 0.9; transform: translateY(1px); }
.isr-apt-btn--primary { background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(27, 42, 61, 0.2); }
.isr-apt-btn--primary:hover { background: var(--navy-deep); }
.isr-apt-btn--full { width: 100%; font-size: 17px; }
.isr-apt-btn:disabled { opacity: 0.6; cursor: default; }
.isr-apt-btn[hidden] { display: none; }

@media (min-width: 560px) {
  .isr-apt-page { padding-top: 40px; }
}

/* Mobile: compact one-screen layout, no logo on top */
@media (max-width: 560px) {
  .isr-apt-logo { display: none; }
  .isr-apt-page { padding: 12px 12px 36px; }
  .isr-apt-title { font-size: 20px; }
  .isr-apt-subtitle { font-size: 13px; margin: 0 0 12px; }
  .isr-apt-agent { padding: 10px 12px; gap: 8px; }
  .isr-apt-agent__photo { width: 42px; height: 42px; }
  .isr-apt-agent__title { font-size: 11px; }
  .isr-apt-agent__actions { gap: 6px; }
  .isr-apt-contact-btn { width: 40px; height: 40px; }
  .isr-apt-form { padding: 14px; gap: 14px; border-radius: 14px; }
  .isr-apt-step { gap: 12px; }
  .isr-apt-step__title { font-size: 16px; }
  .isr-apt-field { gap: 5px; }
  .isr-apt-field input[type="text"],
  .isr-apt-field input[type="tel"],
  .isr-apt-field input[type="number"],
  .isr-apt-field select { height: 44px; }
  .isr-apt-row { gap: 8px; }
  .isr-apt-media-field { gap: 14px; }
  .isr-apt-dropzone { min-height: 56px; padding: 8px 12px; gap: 10px; }
  .isr-apt-dropzone__icon { width: 36px; height: 36px; font-size: 18px; border-radius: 8px; }
  .isr-apt-dropzone__title { font-size: 14px; }
  .isr-apt-dropzone__hint { font-size: 11px; }
  .isr-apt-media-row { padding: 6px 8px; gap: 8px; }
  .isr-apt-media-row__tile { width: 38px; height: 38px; }
  .isr-apt-media-row__thumb { width: 38px; height: 38px; }
  .isr-apt-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--surface);
    padding: 10px;
    margin: 4px -14px -14px;
    border-top: 1px solid var(--border);
  }
  .isr-apt-nav .isr-apt-btn { height: 46px; }
}
