/* =============================================
   TwoMindsDev – contact.css
   ============================================= */

/* ---- Contact Hero ---- */
.contact-hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

/* ---- Contact Section ---- */
.contact-section {
  padding: 0 0 100px;
}

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

/* ---- Contact Info Sidebar ---- */
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: sticky;
  top: 100px;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 28px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.step strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ig-cta-block {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.ig-cta-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

/* ---- Form Elements ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group.full {
  margin-bottom: 24px;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.req {
  color: var(--blue);
  font-weight: 700;
}

input,
select,
textarea {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237D8CFF' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77,107,255,0.15);
}

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

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #F8FAFF;
}

/* ---- Field errors ---- */
.field-error {
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 18px;
}

/* ---- Submit button ---- */
.submit-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ---- Success / Error messages ---- */
.form-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  font-size: 3rem;
  color: #4ade80;
  margin-bottom: 16px;
}

.form-success h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.form-error-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.875rem;
  color: #ef4444;
  margin-bottom: 20px;
}

/* ---- Active nav link ---- */
.nav-link.active {
  color: var(--blue) !important;
}

.nav-link.active::after { width: 100% !important; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info { position: static; }
}

@media (max-width: 600px) {
  .contact-form-wrap { padding: 28px 20px; }

  .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }

  .form-group { margin-bottom: 16px; }
}
