/* =========================================
   WARPQUBIT — Contacto Page Styles
   ========================================= */

/* ── Contact Layout ──────────────────────── */
.contact-section {
  padding: 140px 0 100px;
  position: relative;
  z-index: 1;
}

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

/* ── Contact Info ────────────────────────── */
.contact-info h1 {
  margin: 12px 0 20px;
  font-size: clamp(32px, 4vw, 56px);
}

.contact-info > p {
  font-size: 16px;
  color: var(--white-70);
  max-width: 400px;
  line-height: 1.75;
}

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.info-block:first-child {
  border-top: 1px solid var(--border);
}

.info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-lt);
  color: var(--white-70);
}

.info-block h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 4px;
}

.info-block a,
.info-block span {
  font-size: 14px;
  color: var(--white-70);
  text-decoration: none;
  transition: color 0.2s;
}

.info-block a:hover {
  color: var(--white);
}

.contact-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.extra-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 24px;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.ns-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-lt);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--white-40);
}

.next-step p {
  font-size: 14px;
  color: var(--white-70);
  line-height: 1.6;
  margin: 0;
}

/* ── Form ────────────────────────────────── */
.contact-form-wrap {
  background: var(--black-1);
  border: 1px solid var(--border);
  padding: 48px 44px;
}

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

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

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

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-70);
}

.req {
  color: var(--white-40);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-40);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--white-40);
}

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

/* ── Checkbox ────────────────────────────── */
.form-group--check {
  flex-direction: row;
  gap: 0;
}

.checkbox-label {
  display: flex;
  gap: 12px;
  cursor: pointer;
  align-items: flex-start;
  position: relative;
}

/* Visually hidden, not display:none — keeps the checkbox focusable and
   in the tab order so keyboard users can reach and toggle it. */
.checkbox-label input[type="checkbox"] {
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-lt);
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.checkbox-label input:focus-visible ~ .checkbox-custom {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--white);
  border-color: var(--white);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.checkbox-text {
  font-size: 12px;
  color: var(--white-40);
  line-height: 1.5;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-text a {
  color: var(--white-70);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.checkbox-text a:hover { color: var(--white); }

/* ── Submit ──────────────────────────────── */
.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border-lt);
  color: var(--white-70);
  font-size: 14px;
}

.form-success svg {
  flex-shrink: 0;
  color: var(--white);
}

/* ── FAQ ──────────────────────────────────── */
.faq-header {
  margin-bottom: 52px;
}

.faq-header h2 {
  margin-top: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--white-70); }

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--white-40);
}

.faq-open .faq-icon {
  transform: rotate(180deg);
  color: var(--white);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}

.faq-a p {
  font-size: 14px;
  color: var(--white-70);
  line-height: 1.75;
  padding-bottom: 24px;
  max-width: 680px;
}

.faq-open .faq-a {
  max-height: 300px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .contact-info { max-width: 600px; }
  .contact-info > p { max-width: 100%; }
}

@media (max-width: 768px) {
  .contact-section { padding: 120px 0 60px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-form-wrap { padding: 32px 24px; }
}
