/* ==========================================================================
   HSF Facilities Management — contact.css
   Styles unique to contact.html (info column, quote form, success state,
   quick-action cards).
   Loaded AFTER global.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 950px) {
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* --------------------------------------------------------------------------
   Info column
   -------------------------------------------------------------------------- */
.contact__info > h2 {
  margin-bottom: 0.6rem;
}

.info-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-list .icon-badge {
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}

.info-list .icon-badge svg {
  width: 23px;
  height: 23px;
}

.info-list li:hover .icon-badge {
  background: var(--teal);
  color: var(--white);
}

.info-list h3 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.info-list a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  word-break: break-word;
}

.info-list a:hover {
  color: var(--teal);
}

.info-list p {
  font-size: 0.95rem;
  margin: 0;
}

/* "We come to you" panel */
.coverage-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 2.2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}

.coverage-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.coverage-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.coverage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.coverage-chips li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   Form card
   -------------------------------------------------------------------------- */
.form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.form-card > h2 {
  margin-bottom: 0.4rem;
}

.form-card__lead {
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.quote-form {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0;
}

.req {
  color: var(--teal);
}

.opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
    background-color var(--t-fast);
}

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

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 18px 18px;
  padding-right: 2.6rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa8bd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(53, 180, 188, 0.18);
}

/* Radio row */
.field--radio legend {
  margin-bottom: 0.55rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast),
    transform var(--t-fast);
}

.radio:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  margin: 0;
}

.radio:has(input:checked) {
  background: var(--teal-050);
  border-color: var(--teal);
}

/* Inline validation */
.error {
  margin: 0;
  font-size: 0.85rem;
  color: #c2334a;
  min-height: 0;
}

.error:empty {
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #e0637a;
  background: #fff6f7;
}

.field.has-error label,
.field.has-error legend {
  color: #c2334a;
}

/* Honeypot — visually removed but still reachable by bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  font-size: 0.88rem;
  text-align: center;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Success state
   -------------------------------------------------------------------------- */
.form-success {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.form-success[hidden] {
  display: none;
}

.form-success__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal);
  margin-bottom: 0.6rem;
  animation: pop 0.5s var(--ease);
}

.form-success__icon svg {
  width: 32px;
  height: 32px;
}

@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.form-success p {
  max-width: 34rem;
  font-size: 0.96rem;
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 1rem 0 0.6rem;
}

#resetForm {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

/* --------------------------------------------------------------------------
   Quick action cards
   -------------------------------------------------------------------------- */
.quick-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
  grid-template-columns: 1fr;
}

.quick-card {
  display: block;
  text-align: center;
  color: inherit;
}

.quick-card .icon-badge {
  margin-inline: auto;
}

.quick-card h3 {
  margin-bottom: 0.25rem;
}

.quick-card p {
  margin: 0;
  font-size: 0.94rem;
  word-break: break-word;
}

.quick-card:hover h3 {
  color: var(--teal);
}

@media (min-width: 700px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
