/* ============================================================
   ALPARMOR — Contact page
   ============================================================ */

.contact-page {
  background: var(--white);
}


/* ---- Layout ---- */
.ct-main {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.ct-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---- Left: Info ---- */
.ct-info {
  padding-top: 16px;
}

.ct-info .section-title {
  margin-bottom: 20px;
}

.ct-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.ct-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.ct-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--light);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dark);
}

.ct-detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.ct-detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
}

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

/* ---- Right: Form ---- */
.ct-form-wrap {
  background: var(--light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.ct-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.ct-field input,
.ct-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.ct-field input:focus,
.ct-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12);
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: #c4c9d4;
}

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

.ct-submit {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

/* ---- Success ---- */
.ct-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.ct-success.visible {
  display: block;
  animation: ctFadeIn 0.5s ease;
}

.ct-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
}

.ct-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.ct-success p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@keyframes ctFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Spinner (reuse from checkout) ---- */
.ct-submit .co-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: coSpin 0.6s linear infinite;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ct-main {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .ct-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
  }

  .ct-info {
    padding-top: 0;
  }

  .ct-info .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .ct-desc              { font-size: 0.85rem; margin-bottom: 24px; }
  .ct-detail-label      { font-size: 0.68rem; }
  .ct-detail-value      { font-size: 0.82rem; }
  .ct-detail-icon       { width: 36px; height: 36px; border-radius: 9px; }
  .ct-details           { gap: 16px; }

  .ct-form-wrap {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .ct-form              { gap: 14px; }
  .ct-field label       { font-size: 0.72rem; }
  .ct-field input,
  .ct-field textarea    { font-size: 0.82rem; padding: 10px 12px; border-radius: 8px; }
  .ct-field textarea    { min-height: 110px; }
  .ct-submit            { font-size: 0.82rem; padding: 11px; }

  .ct-success           { padding: 32px 16px; }
  .ct-success-icon      { width: 48px; height: 48px; }
  .ct-success h3        { font-size: 1.1rem; }
  .ct-success p         { font-size: 0.82rem; }
}
