/* =====================================================================
   Pug IT Solution — contact page
   ---------------------------------------------------------------------
   Contact details, the forms and the booking calendar of
   pages/contact.html. Every rule is scoped under .contact-page, the
   page's <main>.
   ===================================================================== */

/* Contact details: icon plus one line of text */
.contact-page .info-row { gap: 14px; }
.contact-page .info-row > span:last-child { color: var(--text); }


/* ---------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------ */
.contact-page .field { display: flex; flex-direction: column; gap: 8px; }
.contact-page .field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-page .input,
.contact-page .select,
.contact-page .textarea {
  width: 100%;
  padding: 0 16px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(6, 6, 9, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.contact-page .textarea {
  height: auto;
  padding: 14px 16px;
  line-height: 1.6;
  resize: vertical;
  min-height: 132px;
}
.contact-page .input::placeholder,
.contact-page .textarea::placeholder { color: var(--text-faint); }
.contact-page .input:focus,
.contact-page .select:focus,
.contact-page .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.16);
  background: rgba(10, 10, 14, 0.94);
}
.contact-page .select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A79E8D' stroke-width='2' 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 16px center;
  padding-right: 44px;
}
.contact-page .select option { background: #0E0E13; color: var(--text); }

.contact-page .form-status {
  font-size: 15px;
  line-height: 1.5;
  min-height: 22px;
  color: var(--green);
}

.contact-page .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ---------------------------------------------------------------------
   Booking calendar

   Month grid on the left, the times of the chosen day and the booking
   form on the right. Every day and every time is a real <button>, so the
   whole thing is operable from the keyboard; without the site scripts the
   panel is replaced by the fallback notice and the contact form below it.
   ------------------------------------------------------------------ */
.contact-page .booker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 48px);
  align-items: start;
}

/* Without the "js" class nothing can be trusted to fill the calendar, so
   it is not offered: the fallback notice inside the panel is left on its
   own. Specificity (0,4,1) keeps this ahead of
   .contact-page .booker { display: grid; } above. */
html:not(.js) .contact-page [data-booking] .booker { display: none; }

/* The notice is for a page without the "js" class only. js/shared/site.js
   sets the class before the first paint, so the notice never flashes up. */
.js .contact-page .booking-fallback { display: none; }

/* Call length: two radio buttons wearing the look of a segmented control */
.contact-page .seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(201, 162, 39, 0.04);
}
.contact-page .seg__option { display: inline-flex; }
.contact-page .seg__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-page .seg__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-page .seg__label:hover { color: var(--text); }
.contact-page .seg__option input:checked + .seg__label {
  background: var(--grad-accent);
  color: var(--on-gold);
}
.contact-page .seg__option input:focus-visible + .seg__label {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.contact-page .cal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.contact-page .cal__month {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.contact-page .cal__nav { display: flex; gap: 8px; }
.contact-page .cal__nav-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(201, 162, 39, 0.05);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.contact-page .cal__nav-btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(201, 162, 39, 0.1);
}
.contact-page .cal__nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.contact-page .cal__dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.contact-page .cal__dow span {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-page .cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.contact-page .cal__pad { visibility: hidden; }

.contact-page .cal__day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid transparent;
  background: rgba(195, 203, 214, 0.035);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: not-allowed;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
/* A day with free times: readable, outlined and marked with a gold point */
.contact-page .cal__day.is-open {
  color: var(--text);
  border-color: var(--line);
  background: rgba(201, 162, 39, 0.06);
  cursor: pointer;
}
.contact-page .cal__day.is-open::after {
  content: '';
  position: absolute;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.contact-page .cal__day.is-open:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.contact-page .cal__day.is-today { box-shadow: inset 0 0 0 1px var(--gold-deep); }
.contact-page .cal__day.is-selected {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--on-gold);
  font-weight: 600;
}
.contact-page .cal__day.is-selected::after { background: var(--on-gold); }

.contact-page .cal__legend {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.contact-page .cal__legend::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.contact-page .slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.contact-page .slot-btn {
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(201, 162, 39, 0.05);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.contact-page .slot-btn:hover { border-color: var(--gold); color: var(--text); }
.contact-page .slot-btn.is-selected {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--on-gold);
  font-weight: 600;
}

.contact-page .slot-hint {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* The line that repeats the chosen appointment back to the visitor */
.contact-page .booking-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(201, 162, 39, 0.07);
}
.contact-page .booking-summary__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-page .booking-summary__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.contact-page .booking-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-faint);
}


/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .contact-page .booker { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .contact-page .seg { width: 100%; }
  .contact-page .seg__option { flex: 1; }
  .contact-page .seg__label { width: 100%; }
}
