/* contact.css – Hornik Solutions Contact Page */

:root {
  --hs-primary: #c9aa71;
  --hs-surface: #1a1a1a;
  --hs-border: #2b2b2b;
  --hs-text: #fff;
  --hs-text-muted: #999;

  --hs-green-200: #e6f5ea;
  --hs-green-500: #2f8f46;
  --hs-red-200: #fdecea;
  --hs-red-500: #c23b2e;
}

/* Layout wrapper */
.hs-wrapper {
  width: min(90%, 1100px);
  margin-inline: auto;
  padding-block: 4rem;
}

/* Section + headings */
.hs-contact-section {
  text-align: center;
  margin-bottom: 3rem;
}

.hs-contact-title {
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c9aa71;
  margin-bottom: 0.5rem;
}

.hs-contact-subtitle {
  color: var(--hs-text-muted);
  font-size: 1.1rem;
}

/* Grid layout */
.hs-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 992px) {
  .hs-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact card container */
.hs-contact-card {
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: 0;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.hs-contact-card:first-child {
  border-radius: 16px 16px 0 0;
}

@media (min-width: 992px) {
  .hs-contact-card:first-child {
    border-radius: 16px 0 0 16px;
    border-right: none;
  }

  .hs-contact-card:last-child {
    border-radius: 0 16px 16px 0;
  }
}

@media (max-width: 991px) {
  .hs-contact-card:last-child {
    border-radius: 0 0 16px 16px;
  }
}

.hs-contact-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hs-border);
  flex-shrink: 0;
}

.hs-contact-option-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hs-primary);
  margin: 0;
}

.hs-contact-option-desc {
  font-size: 0.9rem;
  color: var(--hs-text-muted);
  margin-top: 0.5rem;
}

/* Card body - form side grows to fill, Calendly side is flush */
.hs-contact-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Calendly widget flush to card edges */
.hs-contact-card:last-child .hs-contact-card-body {
  margin: 0 -2rem -2rem;
  padding: 0;
}

.hs-contact-card-body .calendly-inline-widget {
  width: 100%;
  min-width: auto;
  height: 630px;
  flex: 1;
}

/* Alerts */
.hs-alert {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.hs-alert-success {
  background: var(--hs-green-200);
  border-color: color-mix(in srgb, var(--hs-green-500) 40%, transparent);
  color: var(--hs-green-500);
}

.hs-alert-error {
  background: var(--hs-red-200);
  border-color: color-mix(in srgb, var(--hs-red-500) 40%, transparent);
  color: var(--hs-red-500);
}

.hs-alert ul {
  margin: 0.5rem 0 0 1rem;
}

/* Form */
.hs-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

/* First + Last row */
.hs-field-row--name {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hs-field-row--name {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
}

.hs-field-row--name > .hs-field {
  min-width: 0;
}

/* Fields */
.hs-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hs-field label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--hs-text);
}

/* Inputs */
.hs-field input,
.hs-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--hs-border);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.4;
  font-family: inherit;
  background-color: #0f0f0f;
  color: var(--hs-text);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hs-field textarea {
  min-height: 140px;
  resize: vertical;
  flex: 1;
}

.hs-field input::placeholder,
.hs-field textarea::placeholder {
  color: #666;
}

.hs-field input:focus,
.hs-field textarea:focus {
  outline: none;
  border-color: var(--hs-primary);
  box-shadow: 0 0 0 3px rgba(201, 170, 113, 0.15);
}

/* Invalid highlight */
.hs-contact-form [aria-invalid="true"] {
  border-color: var(--hs-red-500);
}

.hs-contact-form [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(194, 59, 46, 0.15);
}

/* Honeypot */
.hs-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Captcha */
.g-recaptcha {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

/* Send Message button */
.hs-contact-form .hs-btn {
  padding: 14px 32px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--hs-primary), #b8956a);
  color: #1a1a1a;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  min-width: 180px;
  margin-top: 0.5rem;
}

.hs-contact-form .hs-btn:hover {
  background: linear-gradient(135deg, #e6c487, var(--hs-primary));
  transform: translateY(-1px);
}

/* Required asterisk */
.hs-field label span[aria-hidden="true"] {
  color: var(--hs-primary);
  margin-left: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hs-contact-form .hs-btn,
  .hs-field input,
  .hs-field textarea {
    transition: none;
  }
}