/* Contact page */

.he-contact-page { padding-bottom: 4rem; }

.he-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
  padding: 0 1rem;
}

@media (min-width: 640px) { .he-contact-layout { padding: 0 2rem; margin-top: 4rem; } }
@media (min-width: 768px) { .he-contact-layout { padding: 0 3rem; } }
@media (min-width: 1024px) {
  .he-contact-layout {
    grid-template-columns: 1fr 2fr;
    padding: 0 4rem;
  }
}
@media (min-width: 1280px) { .he-contact-layout { padding: 0 6rem; } }

.he-contact-sidebar {
  background: var(--he-slate-900);
  color: var(--he-white);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--he-slate-800);
  box-shadow: var(--he-shadow-sm);
  position: relative;
  overflow: hidden;
}

.he-contact-sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 12rem;
  height: 12rem;
  background: rgba(211, 15, 21, 0.1);
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
}

.he-contact-sidebar > * { position: relative; z-index: 1; }

.he-contact-sidebar__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--he-primary);
  margin-bottom: 0.25rem;
}

.he-contact-sidebar h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

@media (min-width: 640px) { .he-contact-sidebar h3 { font-size: 1.5rem; } }

.he-contact-sidebar__line {
  width: 2rem;
  height: 0.25rem;
  background: var(--he-primary);
  margin: 0.5rem 0 1rem;
}

.he-contact-sidebar__desc {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--he-slate-400);
}

.he-contact-sidebar__phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: var(--he-white);
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}

.he-contact-sidebar__phone:hover {
  background: var(--he-primary);
  border-color: var(--he-primary);
}

.he-contact-sidebar__phone-icon {
  padding: 0.625rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.he-contact-sidebar__phone:hover .he-contact-sidebar__phone-icon {
  background: rgba(255,255,255,0.2);
  color: var(--he-white);
}

.he-contact-sidebar__phone-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--he-slate-400);
}

.he-contact-sidebar__phone:hover .he-contact-sidebar__phone-sub { color: #fecaca; }

.he-contact-sidebar__phone-num {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) { .he-contact-sidebar__phone-num { font-size: 1.25rem; } }

.he-contact-sidebar__note {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.75;
  color: var(--he-slate-500);
}

.he-contact-form-wrap {
  background: var(--he-white);
  padding: 1.5rem;
  border-top: 1px solid var(--he-slate-300);
  border-bottom: 1px solid var(--he-slate-300);
}

@media (min-width: 640px) {
  .he-contact-form-wrap {
    padding: 2.5rem 3rem;
    border: 1px solid var(--he-slate-300);
    border-radius: 1rem;
    box-shadow: var(--he-shadow-sm);
  }
}

.he-form-fallback .he-form-group { margin-bottom: 1.5rem; }

.he-form-fallback label {
  display: block;
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--he-slate-900);
  margin-bottom: 0.5rem;
}

.he-form-fallback .he-required { color: #ef4444; font-weight: 700; margin-left: 0.25rem; }
.he-form-fallback .he-optional { color: var(--he-slate-400); font-weight: 500; font-size: 0.75rem; }

.he-form-fallback input[type="text"],
.he-form-fallback input[type="email"],
.he-form-fallback input[type="tel"],
.he-form-fallback select,
.he-form-fallback textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--he-slate-200);
  border: 1px solid var(--he-slate-300);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--he-slate-900);
  transition: box-shadow var(--he-transition), background var(--he-transition);
}

.he-form-fallback input:focus,
.he-form-fallback select:focus,
.he-form-fallback textarea:focus {
  outline: none;
  background: var(--he-white);
  box-shadow: 0 0 0 2px var(--he-primary);
}

.he-form-fallback .he-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) { .he-form-fallback .he-form-grid { grid-template-columns: 1fr 1fr; } }

.he-form-fallback .he-form-agreement {
  padding: 1rem;
  background: rgba(254, 242, 242, 0.5);
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
}

.he-form-fallback .he-form-agreement label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 640px) { .he-form-fallback .he-form-agreement label { font-size: 0.875rem; } }

.he-form-fallback .he-form-agreement a { color: var(--he-primary); }
.he-form-fallback .he-form-agreement a:hover { text-decoration: underline; }

.he-form-fallback .he-form-notice {
  padding: 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #92400e;
  margin-bottom: 1.5rem;
}

.he-form-fallback button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: var(--he-primary);
  color: var(--he-white);
  border: none;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(211, 15, 21, 0.1);
  transition: background var(--he-transition);
}

.he-form-fallback button[type="submit"]:hover { background: var(--he-primary-hover); }

.he-form-fallback select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; }

@media (min-width: 640px) {
  .he-contact-sidebar { margin: 0; }
  .he-contact-form-wrap { margin: 0; }
}

@media (max-width: 1023px) {
  .he-contact-sidebar { margin: 0 1rem; }
}

@media (max-width: 639px) {
  .he-contact-sidebar { margin: 0 1rem; }
}
