/* ── Contact Layout ──────────────────────────────────────── */
.contact-main {
  padding-top: calc(var(--nav-h) + clamp(60px, 10vw, 100px));
  min-height: 100svh;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

/* ── Left: Info ──────────────────────────────────────────── */
.contact-title {
  margin: 12px 0 20px;
  line-height: 1.05;
}

.contact-title em { font-style: normal; }

.contact-sub {
  margin-bottom: 48px;
  max-width: 420px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 52px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--purple-subtle);
  border: 1px solid var(--border-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.92rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
  transition: color 0.2s;
}

a.detail-value:hover { color: var(--purple); }


/* ── Right: Form ─────────────────────────────────────────── */
.contact-form-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.form-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.required {
  color: var(--purple);
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  width: 100%;
  min-height: 48px;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.2); }

.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-input.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%23ffffff50' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-select option {
  background: #111;
  color: var(--white);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-error {
  font-size: 0.75rem;
  color: #f87171;
  font-family: var(--font-heading);
  min-height: 16px;
  transition: opacity 0.2s;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.form-submit {
  flex-shrink: 0;
}

.form-submit[data-loading="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  min-width: 300px;
  max-width: 380px;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.12);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.toast-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.toast-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}

.toast-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.toast-progress {
  height: 2px;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple-glow);
  width: 100%;
  transform-origin: left;
}

.toast-progress--running {
  animation: toastShrink linear forwards;
}

@keyframes toastShrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .contact-form-wrap { position: static; }
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .social-grid { grid-template-columns: 1fr 1fr; }
}
