/* OddStorm contact page — namespaced .ocp-* under body.os-modern.
   Modern card layout with body-level glow backdrop. Uses OSDS tokens. */

body.os-modern .ocp-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 16px;
}

body.os-modern .ocp-card {
  width: 100%;
  max-width: 560px;
}

/* Air between form card and the back-home pill. */
body.os-modern .ocp-page > .os-back-home-wrap {
  margin-top: 20px;
}

body.os-modern .ocp-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-soft);
  text-align: center;
}
body.os-modern .ocp-h1 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--text);
  text-align: center;
}
body.os-modern .ocp-intro {
  margin: 0 auto 36px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

body.os-modern .ocp-form {
  padding: 28px 28px 24px;
  background: color-mix(in srgb, var(--surface-container-low) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--shape-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.os-modern .ocp-field { display: flex; flex-direction: column; gap: 8px; }
body.os-modern .ocp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

body.os-modern .ocp-input,
body.os-modern .ocp-select,
body.os-modern .ocp-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: var(--shape-sm);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast);
}
body.os-modern .ocp-input::placeholder,
body.os-modern .ocp-textarea::placeholder {
  color: var(--text-dim);
}
body.os-modern .ocp-textarea {
  resize: vertical;
  min-height: 140px;
}
body.os-modern .ocp-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa8a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
body.os-modern .ocp-input:focus,
body.os-modern .ocp-select:focus,
body.os-modern .ocp-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

body.os-modern .ocp-captcha {
  display: flex;
  justify-content: center;
}
body.os-modern .ocp-captcha:empty { display: none; }

body.os-modern .ocp-submit {
  padding: 13px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--on-primary);
  background: var(--brand-gradient);
  border: 1px solid transparent;
  border-radius: var(--shape-pill);
  cursor: pointer;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    filter var(--t-fast);
}
body.os-modern .ocp-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: var(--elev-2);
}
body.os-modern .ocp-submit:active:not(:disabled) {
  transform: scale(0.98);
}
body.os-modern .ocp-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.os-modern .ocp-status {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: var(--shape-sm);
}
body.os-modern .ocp-status[data-kind="error"] {
  background: color-mix(in srgb, var(--status-err) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--status-err) 40%, transparent);
  color: var(--text);
}

body.os-modern .ocp-sent {
  text-align: center;
  padding: 32px 24px;
}
body.os-modern .ocp-sent-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 50%;
  color: var(--primary-soft);
}
body.os-modern .ocp-sent-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
body.os-modern .ocp-sent-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

body.os-modern .ocp-direct {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
body.os-modern .ocp-direct a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
body.os-modern .ocp-direct a:hover { color: var(--text); }

@media (max-width: 600px) {
  body.os-modern .ocp-page {
    padding: 32px 16px 16px;
  }
  body.os-modern .ocp-h1 { font-size: 30px; }
  body.os-modern .ocp-form { padding: 22px 20px 20px; }
}
