/* ---------- Contact page ---------- */
.contact-main {
  min-height: calc(100vh - 72px - 80px);
  padding: 90px 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

/* Info column */
.contact-info {
  position: sticky;
  top: 108px;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--ink);
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 42ch;
  margin-bottom: 44px;
}

.contact-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.meta-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

a.meta-value {
  color: var(--accent);
  transition: opacity 0.18s ease;
}

a.meta-value:hover {
  opacity: 0.75;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Form */
.contact-form-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.req {
  color: var(--accent);
}

.optional {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}


.field input::placeholder,
.field textarea::placeholder {
  color: #b0b7c3;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 84, 199, 0.1);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #ef4444;
}

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

.field-error {
  font-size: 0.82rem;
  color: #ef4444;
  font-weight: 500;
  min-height: 1.2em;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.submit-btn {
  position: relative;
  min-width: 180px;
}

.submit-btn.loading .btn-label {
  opacity: 0;
}

.btn-spinner {
  display: none;
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Success state */
.form-success {
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--ink-muted);
}

/* Contact footer */
.contact-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-info {
    position: static;
  }
}

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