/* =====================================================================
   REQUEST PAGE — service request form
   Inherits design tokens from theme.css
   ===================================================================== */

/* MAIN WRAP */
.request-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

/* HEADER */
.request-header {
  margin-bottom: 48px;
}

.request-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
  margin-top: 16px;
}

.request-lede {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.phone-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 28px;
  background: var(--accent-glow);
  border: 2px solid rgba(232, 93, 38, 0.4);
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: -0.5px;
}

.phone-link:hover {
  background: rgba(232, 93, 38, 0.2);
  border-color: var(--accent);
}

/* ERROR BANNER */
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(220, 60, 60, 0.08);
  border: 1px solid rgba(220, 60, 60, 0.3);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 32px;
  color: #f08080;
  font-size: 15px;
  line-height: 1.5;
}

.error-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* FORM */
.service-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* URGENCY SELECTOR */
.urgency-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.urgency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.urgency-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 18px;
  background: var(--bg-surface);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}

.urgency-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.urgency-marker {
  font-size: 20px;
  margin-bottom: 4px;
}

.urgency-card strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  display: block;
}

.urgency-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* Emergency — red tones */
.urgency-emergency .urgency-marker { color: #e85d26; }
.urgency-emergency:hover,
.urgency-emergency.selected {
  border-color: rgba(232, 93, 38, 0.6);
  background: rgba(232, 93, 38, 0.06);
}
.urgency-emergency.selected {
  border-color: var(--accent);
  background: rgba(232, 93, 38, 0.1);
}

/* Urgent — yellow tones */
.urgency-urgent .urgency-marker { color: var(--yellow); }
.urgency-urgent:hover,
.urgency-urgent.selected {
  border-color: rgba(212, 168, 67, 0.5);
  background: rgba(212, 168, 67, 0.06);
}
.urgency-urgent.selected {
  border-color: var(--yellow);
  background: rgba(212, 168, 67, 0.08);
}

/* Scheduled — green tones */
.urgency-scheduled .urgency-marker { color: var(--green); }
.urgency-scheduled:hover,
.urgency-scheduled.selected {
  border-color: rgba(74, 158, 107, 0.5);
  background: rgba(74, 158, 107, 0.06);
}
.urgency-scheduled.selected {
  border-color: var(--green);
  background: rgba(74, 158, 107, 0.08);
}

/* FIELD LAYOUT */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.required {
  color: var(--accent);
}

.optional {
  color: var(--fg-muted);
  font-weight: 400;
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
  font-family: var(--font-body);
}

.field-input,
.field-select,
.field-textarea {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(138, 139, 142, 0.5);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: rgba(232, 93, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.08);
}

/* Chevron for select */
.field-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='%238a8b8e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.field-select option {
  background: var(--bg-surface-2);
  color: var(--fg);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

.field-hint {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* SUBMIT BUTTON */
.btn-submit {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 18px 40px;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: -0.3px;
  align-self: flex-start;
  box-shadow: 0 4px 20px rgba(232, 93, 38, 0.25);
}

.btn-submit:hover {
  background: #d4521e;
  box-shadow: 0 6px 28px rgba(232, 93, 38, 0.4);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(232, 93, 38, 0.2);
}

.form-fine-print {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 480px;
}

/* SUCCESS STATE */
.success-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 56px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(74, 158, 107, 0.12);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--green);
}

.success-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--fg);
}

.success-text {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
}

.btn-primary.success-call {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 4px;
  letter-spacing: -0.3px;
  transition: all 0.18s;
  box-shadow: 0 4px 20px rgba(232, 93, 38, 0.3);
}

.btn-primary.success-call:hover {
  background: #d4521e;
  transform: translateY(-1px);
}

.success-home {
  font-size: 15px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s;
}

.success-home:hover {
  color: var(--fg);
}

/* TRUST STRIP */
.trust-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--bg-surface);
  padding: 36px 40px;
}

.trust-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
}

.trust-label {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.3px;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
  }

  .request-wrap {
    padding: 40px 20px 60px;
  }

  .urgency-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .urgency-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px;
  }

  .urgency-marker {
    font-size: 22px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .btn-submit {
    width: 100%;
    text-align: center;
    padding: 18px;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }

  .trust-strip {
    padding: 32px 20px;
  }

  .trust-divider {
    display: none;
  }

  .phone-link {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .request-header h1 {
    font-size: 2.2rem;
  }

  .nav-logo {
    font-size: 18px;
  }

  .nav-phone {
    font-size: 13px;
    padding: 6px 14px;
  }
}
