/* ==========================================================================
   contact.css — Contact Page Styles
   A Perfect Choice Home Care WordPress Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   Contact Main Section
   -------------------------------------------------------------------------- */
.apch-contact-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}
.apch-contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 143, 113, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.apch-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.apch-contact-form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(27, 43, 75, 0.04);
  transition: box-shadow 0.4s ease;
}
.apch-contact-form:focus-within {
  box-shadow:
    0 4px 12px rgba(27, 43, 75, 0.04),
    0 12px 32px rgba(27, 43, 75, 0.06);
}
.apch-contact-form h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.apch-contact-form > p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}
.apch-contact-field {
  margin-bottom: 20px;
  position: relative;
}
.apch-contact-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.apch-contact-field label .apch-required {
  color: var(--coral);
  margin-left: 2px;
}
.apch-contact-field input,
.apch-contact-field textarea,
.apch-contact-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.3s ease;
}
.apch-contact-field input:hover,
.apch-contact-field textarea:hover,
.apch-contact-field select:hover {
  border-color: rgba(196, 74, 63, 0.3);
}
.apch-contact-field input:focus,
.apch-contact-field textarea:focus,
.apch-contact-field select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(196, 74, 63, 0.08);
  background: var(--white);
}
.apch-contact-field:focus-within label {
  color: var(--coral);
}
.apch-contact-field input::placeholder,
.apch-contact-field textarea::placeholder {
  color: var(--text-lighter);
  transition: opacity 0.3s ease;
}
.apch-contact-field input:focus::placeholder,
.apch-contact-field textarea:focus::placeholder {
  opacity: 0.5;
}
.apch-contact-field textarea {
  min-height: 140px;
  resize: vertical;
}
.apch-contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236E6E6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.apch-contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.apch-contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}
.apch-contact-consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--coral);
}
.apch-contact-submit {
  width: 100%;
}
.apch-contact-form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.apch-contact-form-success.active {
  display: block;
}
.apch-contact-form-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--sage);
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(107, 143, 113, 0.15);
}
.apch-contact-form-success h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.apch-contact-form-success p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .apch-contact-field-row {
    grid-template-columns: 1fr;
  }
  .apch-contact-form {
    padding: 28px 20px;
  }
}

/* --------------------------------------------------------------------------
   Contact Info / Office Cards
   -------------------------------------------------------------------------- */
.apch-contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.apch-contact-office {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(27, 43, 75, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.apch-contact-office::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--coral), var(--sage));
  opacity: 0.3;
  transition: opacity 0.4s ease;
}
.apch-contact-office:hover {
  border-color: transparent;
  background: var(--white);
  box-shadow:
    0 4px 6px rgba(27, 43, 75, 0.03),
    0 10px 24px rgba(27, 43, 75, 0.06),
    0 20px 40px rgba(27, 43, 75, 0.04);
  transform: translateY(-4px);
}
.apch-contact-office:hover::before {
  opacity: 1;
}
.apch-contact-office h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.apch-contact-office-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--sage);
  padding: 3px 10px;
  border-radius: 12px;
}
.apch-contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}
.apch-contact-detail:last-child {
  margin-bottom: 0;
}
.apch-contact-detail svg {
  color: var(--sage);
  min-width: 18px;
  margin-top: 3px;
  transition: color 0.3s ease;
}
.apch-contact-office:hover .apch-contact-detail svg {
  color: var(--coral);
}
.apch-contact-detail a {
  color: var(--coral);
  font-weight: 600;
  transition: color 0.3s ease;
}
.apch-contact-detail a:hover {
  color: var(--coral-hover);
}
.apch-contact-office-hours {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.apch-contact-office-hours h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.apch-contact-office-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-light);
  padding: 4px 0;
}
.apch-contact-office-hours-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Quick Contact Cards
   -------------------------------------------------------------------------- */
.apch-contact-quick {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.apch-contact-quick::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 74, 63, 0.12), transparent 70%);
  pointer-events: none;
}
.apch-contact-quick h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.apch-contact-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-contact-quick-item:hover {
  transform: translateX(6px);
}
.apch-contact-quick-item + .apch-contact-quick-item {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.apch-contact-quick-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(196, 74, 63, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-contact-quick-item:hover .apch-contact-quick-icon {
  background: rgba(196, 74, 63, 0.35);
  transform: scale(1.08);
}
.apch-contact-quick-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.apch-contact-quick-item a,
.apch-contact-quick-item p {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
.apch-contact-quick-item a:hover {
  color: var(--coral);
}

@media (max-width: 900px) {
  .apch-contact-grid {
    grid-template-columns: 1fr;
  }
  .apch-contact-section {
    padding: 80px 0;
  }
}
@media (max-width: 768px) {
  .apch-contact-grid {
    gap: 40px;
  }
  .apch-contact-form {
    padding: 32px 28px;
  }
  .apch-contact-office {
    padding: 28px 24px;
  }
  .apch-contact-quick {
    padding: 28px 24px;
  }
}
@media (max-width: 600px) {
  .apch-contact-section {
    padding: 60px 0;
  }
}

/* --------------------------------------------------------------------------
   Map Section
   -------------------------------------------------------------------------- */
.apch-contact-map {
  padding: 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.apch-contact-map-header {
  text-align: center;
  padding: 80px 0 40px;
}
.apch-contact-map-header .apch-section-label {
  justify-content: center;
}
.apch-contact-map-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.apch-contact-map-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.apch-contact-map-embed {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .apch-contact-map-header {
    padding: 60px 0 32px;
  }
  .apch-contact-map-embed {
    height: 300px;
  }
}

/* --------------------------------------------------------------------------
   Contact Service Areas
   -------------------------------------------------------------------------- */
.apch-contact-areas {
  padding: 80px 0;
  background: var(--white);
}
.apch-contact-areas-header {
  text-align: center;
  margin-bottom: 48px;
}
.apch-contact-areas-header .apch-section-label {
  justify-content: center;
}
.apch-contact-areas-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.apch-contact-areas-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.apch-contact-areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.apch-contact-area-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 1px 6px rgba(27, 43, 75, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-contact-area-item:hover {
  background: var(--white);
  transform: translateY(-3px);
  border-color: rgba(196, 74, 63, 0.15);
  box-shadow:
    0 2px 6px rgba(27, 43, 75, 0.03),
    0 6px 16px rgba(27, 43, 75, 0.06);
}
.apch-contact-area-item svg {
  color: var(--sage);
  min-width: 16px;
  transition: color 0.3s ease;
}
.apch-contact-area-item:hover svg {
  color: var(--coral);
}

@media (max-width: 900px) {
  .apch-contact-areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .apch-contact-areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .apch-contact-areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .apch-contact-areas {
    padding: 60px 0;
  }
}
