/* OutSmart Contact — standalone support page.
   Palette and form styling mirror the in-app Get Support widget so the two
   feel like the same product, but this is a fully independent stylesheet. */

:root {
  --ink: #2b9ace;   /* OutSmart brand blue (from the logo plane) */
  --blue: #2b9ace;
  --grey: #cfd8e3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, #f6f9fc 0%, #e7edf3 46%, #d9e2eb 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #222;
  padding: 28px 16px 44px;
}

.page-logo {
  display: block;
  width: 210px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 20px;
}

.sc-card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  overflow: hidden;
}

.sc-header {
  background: #fff;
  padding: 20px 20px 16px;
  text-align: center;
  border-bottom: 1px solid #eef2f6;
}
.sc-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #333;
}

#sc-form { padding: 18px 20px 22px; }

.sc-intro { font-size: 13px; color: #555; margin: 0 0 14px; line-height: 1.5; }

/* Staff "exit the form" callout — light orange so it reads as an alternative
   to filling out the form (browse the guide / book a call), not part of it. */
.sc-exit-box {
  margin: 0 0 18px;
  padding: 11px 14px;
  background: #fff5e6;
  border: 1px solid #ffe2b8;
  border-radius: 8px;
  font-size: 13px;
  color: #5c3b13;
  line-height: 1.55;
}
.sc-exit-box[hidden] { display: none; }
.sc-exit-box a {
  color: #c0571a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted #c0571a;
}
.sc-exit-box a:hover { color: #8b3e15; border-bottom-color: #8b3e15; }

#sc-form label {
  display: block;
  font-size: 12px;
  color: #3a4754;
  font-weight: 600;
  margin: 12px 0 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#sc-form label.sc-label { margin: 14px 0 2px; }

/* Urgency cards are <label>s too, but their content should NOT inherit the
   uppercase field-label styling. Higher specificity than `#sc-form label`. */
#sc-form .sc-urgency-card,
#sc-form .sc-urgency-card .sc-urgency-title,
#sc-form .sc-urgency-card .sc-hint {
  text-transform: none;
  letter-spacing: normal;
}

input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--grey);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  background: #fff;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, .15);
}
textarea { resize: vertical; min-height: 84px; }

.sc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 4px; }
.sc-field label { margin-top: 0; }
@media (max-width: 600px) { .sc-row { grid-template-columns: 1fr; } }

/* Phone = small country-code box + the number. */
.sc-phone-group { display: flex; gap: 6px; }
.sc-cc { flex: 0 0 52px; width: 52px; text-align: center; padding-left: 4px; padding-right: 4px; }
.sc-phone-group #sc-phone { flex: 1 1 auto; min-width: 0; }

.sc-urgency-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .sc-urgency-row { grid-template-columns: 1fr; } }

.sc-urgency-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  position: relative;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  transition: background .12s ease, border-color .12s ease;
}
.sc-urgency-card[hidden] { display: none; }

/* Urgent is hidden unconditionally by default (id selector beats the card's
   display:flex) and shown ONLY when JS adds .sc-form--urgent to the form,
   which happens only when a ?k= access key is present. Bulletproof against
   any [hidden]/JS-timing weirdness: no key, no Urgent, ever. */
#sc-urgent-card { display: none !important; }
form.sc-form--urgent #sc-urgent-card { display: flex !important; }
.sc-urgency-card:hover { background: #f7fafd; border-color: #cfdef0; }
.sc-urgency-card input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none; }

.sc-urgency-card:has(input[value=general]:checked) { background: #eaf6fc; border-color: #2b9ace; box-shadow: 0 0 0 2px rgba(43, 154, 206, .18); }
.sc-urgency-card:has(input[value=important]:checked) { background: #fef9e7; border-color: #f39c12; box-shadow: 0 0 0 2px rgba(243, 156, 18, .18); }
.sc-urgency-card:has(input[value=important]:checked) .sc-urgency-title { color: #b9770e; }
.sc-urgency-card:has(input[value=urgent]:checked) { background: #fdeaea; border-color: #e74c3c; box-shadow: 0 0 0 2px rgba(231, 76, 60, .2); }
.sc-urgency-card:has(input[value=urgent]:checked) .sc-urgency-title { color: #a93226; }

.sc-urgency-title { color: var(--ink); font-weight: 700; font-size: 13px; line-height: 1.2; }
.sc-hint { display: block; color: #666; font-size: 11px; margin-top: 3px; line-height: 1.35; }

.sc-urgent-qualifier {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fdeaea;
  border-left: 4px solid #e74c3c;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #5b1a14;
  line-height: 1.5;
}
.sc-urgent-qualifier[hidden] { display: none; }
.sc-urgent-qualifier-lead { margin: 0 0 8px; }
.sc-urgent-qualifier-lead strong { color: #a93226; }
.sc-urgent-qualifier-list { margin: 0 0 8px; padding-left: 18px; }
.sc-urgent-qualifier-list li { margin-bottom: 4px; }
.sc-urgent-qualifier-closer { margin: 0; font-style: italic; color: #7a2a20; }

.sc-phi-warning { margin-top: 6px; font-size: 11.5px; color: #7a8189; line-height: 1.45; font-style: italic; }

.sc-field-error { display: none; color: #c0392b; font-size: 12px; margin-top: 4px; line-height: 1.3; }
.sc-field-invalid { border-color: #e74c3c !important; background: #fef6f5 !important; }

.sc-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fdecea;
  border-left: 4px solid #e74c3c;
  color: #922b21;
  font-size: 13px;
  border-radius: 0 6px 6px 0;
}
.sc-error[hidden] { display: none; }

.cf-turnstile { margin-top: 16px; }

.sc-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee; }
.sc-btn-submit {
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  background: var(--ink);
  color: #fff;
}
.sc-btn-submit:hover { background: #2484b4; }
.sc-btn-submit:disabled { opacity: .6; cursor: default; }

.sc-success { padding: 40px 24px; text-align: center; }
.sc-success[hidden] { display: none; }
.sc-success-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: #27ae60; color: #fff; font-size: 28px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.sc-success h2 { margin: 0 0 8px; color: var(--ink); font-size: 20px; }
.sc-success p { color: #555; font-size: 14px; line-height: 1.5; max-width: 440px; margin: 0 auto; }
