/* Contact Page Styles — Ideal Home Care
   Builds on style.css tokens and service.css components */

/* === CONTACT METHODS === */
.contact-methods {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.contact-method {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.contact-method-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(204,31,36,0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.contact-method h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 0.75rem;
}
.contact-method p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.7;
}
.contact-method p + p { margin-top: 0.15rem; }
.contact-method strong { color: var(--dark); font-weight: 600; }
.contact-method-value {
  font-weight: 600;
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: rgba(204,31,36,0.35);
  text-underline-offset: 3px;
  word-break: break-word;
}
.contact-method-value:hover { color: var(--red); }
.contact-method-note {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.88rem !important;
  color: var(--red) !important;
  font-weight: 600;
}
.contact-method-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}
.contact-method-link:hover { color: var(--red-dark); text-decoration: underline; }
@media (max-width: 1024px) {
  .contact-methods-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .contact-methods-grid { grid-template-columns: 1fr; }
}

/* === FORM + SIDEBAR LAYOUT === */
.contact-body {
  background: var(--white);
  padding: var(--section-y) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

/* Form card */
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
.contact-form-wrap h2 em { font-style: italic; color: var(--red); }
.contact-form-intro {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cf-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.cf-field label .cf-optional {
  font-weight: 400;
  color: var(--gray-400);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CC1F24' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,31,36,0.1);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

/* Consent checkboxes reuse the modal's .mf-check */
.contact-form .mf-check label { font-size: 0.75rem; }
.contact-form .btn-form-submit { margin-top: 0.5rem; }

/* === SIDEBAR === */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 96px;
}
.next-steps {
  background: var(--dark);
  border-radius: 12px;
  padding: 1.75rem;
  color: var(--white);
}
.next-steps h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1.25rem;
}
.next-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.next-step:first-of-type { padding-top: 0; }
.next-step:last-of-type { border-bottom: none; padding-bottom: 0; }
.next-step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.next-step h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.2rem;
}
.next-step p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

/* === MAP === */
.contact-map {
  padding: 0 0 var(--section-y);
  background: var(--white);
}
.map-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
  background: var(--gray-100);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-card {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 300px;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.map-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--red);
  margin: 0 0 0.6rem;
}
.map-card address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.map-card p {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.map-card .btn { font-size: 0.85rem; padding: 0.6rem 1.3rem; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
}
@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; }
  .map-frame { height: auto; display: flex; flex-direction: column-reverse; }
  .map-frame iframe { height: 300px; }
  .map-card {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: var(--cream);
  }
}

.contact-form select { line-height: 1.5; }
