/* ==========================================================================
   YD Cleaning Services LLC — contact
   Contact details, hours, quote form and map.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.info-list {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--gold-300);
}

.info-icon .icon {
  width: 20px;
  height: 20px;
}

.info-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold-600);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.info-list address {
  color: var(--ink);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.5;
}

.info-main {
  display: block;
  color: var(--green-900);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.info-main-sm {
  font-size: 0.9rem;
}

.info-note {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.73rem;
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(201, 171, 93, 0.65);
  color: var(--green-900);
  font-size: 0.76rem;
  font-weight: 600;
}

.info-link .icon {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
}

.hours-card {
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.hours-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.hours-head h3 {
  font-size: 1.18rem;
}

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(47, 107, 60, 0.1);
  color: var(--ok);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.hours-status[data-state="closed"] {
  background: rgba(93, 108, 97, 0.12);
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hours-status[data-state="open"] .status-dot {
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 60, 0.35); }
  55% { box-shadow: 0 0 0 5px rgba(47, 107, 60, 0); }
}

.hours-detail {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.hours-table th,
.hours-table td {
  padding: 0.48rem 0.15rem;
  border-bottom: 1px solid rgba(11, 43, 27, 0.07);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.hours-table th {
  color: var(--muted);
  font-weight: 500;
}

.hours-table td {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table tr.is-today th,
.hours-table tr.is-today td {
  color: var(--green-900);
  font-weight: 600;
}

.hours-table tr.is-today th::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--gold-500);
  vertical-align: middle;
}

.hours-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

/* Contact form ----------------------------------------------------------- */

.form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 34px 70px -52px rgba(7, 31, 18, 0.6);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600));
}

.form-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.form-lead {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 300;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  margin-bottom: 0.32rem;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid #d9d1c1;
  border-radius: 11px;
  background: var(--cream-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field select {
  appearance: none;
  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' fill='none' stroke='%235d6c61' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa399;
  font-size: 0.83rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 171, 93, 0.2);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff7f6;
}

.field-error {
  min-height: 1.05rem;
  padding-top: 0.15rem;
  color: var(--danger);
  font-size: 0.7rem;
  line-height: 1.4;
}

.form-submit {
  width: 100%;
  margin-top: 0.3rem;
  padding-block: 0.92rem;
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
  text-align: center;
}

.form-status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  border: 1px solid rgba(47, 107, 60, 0.22);
  background: rgba(47, 107, 60, 0.1);
  color: #255c33;
}

.form-status.is-error {
  border: 1px solid rgba(179, 38, 30, 0.2);
  background: rgba(179, 38, 30, 0.07);
  color: #8f1f19;
}

.form-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.65rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

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

.form-extra a {
  color: var(--green-700);
  font-weight: 500;
  text-decoration: underline;
}

.form-extra a:hover {
  color: var(--gold-600);
}

.form-copy {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-700);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.form-copy:hover {
  color: var(--gold-600);
}

/* Map -------------------------------------------------------------------- */

.map-wrap {
  position: relative;
  margin-top: 2.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  filter: saturate(0.9) contrast(1.02);
}

.map-link {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-900);
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 12px 26px -14px rgba(7, 31, 18, 0.55);
}

.map-link .icon {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
}

