/* =========================================
   TECHXLNS – Contact Page Styles
   ========================================= */

.contact-section { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: flex-start;
}

/* ---- INFO PANEL ---- */
.contact-info h2  { margin-bottom: 1rem; }
.contact-info > p { line-height: 1.85; margin-bottom: 2.5rem; }
.info-items { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.info-item  { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon  { font-size: 1.4rem; width: 2.5rem; flex-shrink: 0; }
.info-item strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--navy-deep);
  margin-bottom: 0.2rem;
}
.info-item p { font-size: 0.92rem; margin: 0; }
.contact-cities { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.city-chip {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  transition: var(--transition);
}
.city-chip:hover { border-color: var(--navy); color: var(--navy); }

/* ---- FORM ---- */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.required { color: var(--navy); }

input, select, textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-light); }
select {
  cursor: pointer;
  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='%235a6080' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select option { background: #fff; }
input:focus, select:focus, textarea:focus {
  border-color: var(--figma-hover);
  box-shadow: 0 0 0 3px rgba(4, 78, 213, 0.22);
  background: #fff;
}
input.error, select.error, textarea.error { border-color: #e53e3e; }
textarea { resize: vertical; min-height: 130px; }
.error-msg { font-size: 0.78rem; color: #e53e3e; font-family: var(--font-ui); min-height: 1rem; }

/* ---- SUBMIT BUTTON ---- */
.btn-submit {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-loader { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-loader::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---- SUCCESS STATE ---- */
.form-success { text-align: center; padding: 3rem 1rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { font-size: 1.5rem; color: var(--navy-deep); margin-bottom: 0.75rem; }
.form-success p  { font-size: 0.95rem; line-height: 1.7; }
.hidden { display: none !important; }

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

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
}

.btn-submit.btn-submit-center {
  width: auto;
  min-width: 180px;
  align-self: center;
  margin: 0.75rem auto 0;
}
