/* ============================================================
   Rose IT Ltd — contact page and 404 page bands (v5).
   Loads after styles.css and v5.css. Scoped to body.v5.
   ============================================================ */

/* ----- Contact: form card plus side cards, in a light band ----- */
.v5 .contact5 { padding-top: clamp(56px, 6vw, 88px); }
.v5 .contact5-grid {
  width: 100%;
  max-width: var(--container);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.v5 .contact5 .side5 { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }

/* The form keeps its id, names and status element; only the shell changes. */
.v5 .contact5 .enquiry-form {
  margin: 0;
  max-width: none;
  border: 0;
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}
.v5 .contact5 .enquiry-form .form-eyebrow { color: var(--brass-deep); margin-bottom: 10px; }
.v5 .contact5 .enquiry-form .form-title {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.v5 .contact5 .enquiry-form .form-title em { font-style: italic; color: var(--brass-deep); }
.v5 .contact5 .enquiry-form .form-note { margin: 0 0 26px; color: rgba(12, 26, 53, 0.66); font-size: 15px; line-height: 1.6; }
.v5 .contact5 .field > span { color: rgba(12, 26, 53, 0.62); font-size: 11px; }
.v5 .contact5 .field input,
.v5 .contact5 .field select,
.v5 .contact5 .field textarea {
  background: var(--paper);
  border: 1px solid rgba(12, 26, 53, 0.14);
  border-radius: 12px;
  color: var(--ink);
  padding: 13px 14px;
}
.v5 .contact5 .field textarea { min-height: 120px; }
.v5 .contact5 .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a6a35' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.v5 .contact5 .field select option { background: #fff; color: var(--ink); }
.v5 .contact5 .field input:focus,
.v5 .contact5 .field select:focus,
.v5 .contact5 .field textarea:focus {
  background-color: #fff;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 138, 74, 0.18);
}
.v5 .contact5 .field input:user-invalid,
.v5 .contact5 .field select:user-invalid,
.v5 .contact5 .field textarea:user-invalid { border-color: var(--brass-deep); }
.v5 .contact5 .field .field-error { color: var(--brass-deep); }
.v5 .contact5 .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.v5 .contact5 .form-foot .small { margin: 0; font-size: 13px; color: rgba(12, 26, 53, 0.58); line-height: 1.5; }
.v5 .contact5 .btn-submit {
  margin-top: 0;
  border-radius: 14px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
}
.v5 .contact5 .btn-submit::before { background: linear-gradient(90deg, var(--brass) 0%, var(--brass-bright) 100%); }
.v5 .contact5 .btn-submit:hover { color: var(--ink); border-color: var(--brass); }
.v5 .contact5 .btn-submit[disabled]:hover { color: var(--paper); border-color: var(--ink); }
.v5 .contact5 .enquiry-status { color: rgba(12, 26, 53, 0.7); margin-top: 18px; }
.v5 .contact5 .enquiry-status.ok { border-radius: 12px; color: var(--ink); background: rgba(176, 138, 74, 0.08); }
.v5 .contact5 .enquiry-status.err { border-radius: 12px; border-color: rgba(12, 26, 53, 0.18); }
.v5 .contact5 .enquiry-status a { color: var(--brass-deep); }

/* Side cards: how to reach us, and what happens next. */
.v5 .contact5 .rows { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.v5 .contact5 .row5 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  transition: background 0.3s ease;
}
a.row5:hover { background: var(--paper-2); }
.v5 .contact5 .row5 svg { width: 18px; height: 18px; flex: none; color: var(--brass-deep); }
.v5 .contact5 .row5 .lbl { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(12, 26, 53, 0.55); margin-bottom: 2px; }
.v5 .contact5 .dcard ul { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.v5 .contact5 .dcard li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--steel-bright); font-weight: 300; }
.v5 .contact5 .dcard li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--brass-bright); }

/* What to expect: three small steps. */
.v5 .steps5 { width: 100%; max-width: 1080px; }
.v5 .steps5 .lcard { gap: 14px; }
.v5 .steps5 .glyph {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(176, 138, 74, 0.1);
  color: var(--brass-deep);
}
.v5 .steps5 .glyph svg { width: 22px; height: 22px; }

/* ----- 404: a short centred dark band with a ghost number behind ----- */
.v5 .err5 { min-height: 100svh; justify-content: center; text-align: center; overflow: hidden; }
.v5 .err5 .ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--serif);
  font-size: clamp(220px, 42vw, 560px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(245, 241, 234, 0.035);
  pointer-events: none;
  user-select: none;
}
.v5 .err5 .band-head, .v5 .err5 .tags5 { position: relative; z-index: 1; }
.v5 .err5 .band-head .pill-btn { margin-top: 8px; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .v5 .contact5-grid { grid-template-columns: 1fr; }
  .v5 .contact5 .side5 { position: static; }
}
@media (max-width: 720px) {
  .v5 .contact5 .form-foot .btn-submit { width: 100%; justify-content: center; }
}
