/* ==========================================================
   METABEL ZARA — CONTACT PAGE STYLES
   ========================================================== */

.contact {
  padding: 5rem var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
}

.info-block { display: flex; flex-direction: column; gap: 0.35rem; }

.info-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.info-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  transition: color 0.3s var(--ease);
  font-style: normal;
}

.info-link:hover { color: var(--red-bright); }

.info-socials {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.info-socials .soc-ico.lg {
  width: 44px;
  height: 44px;
}

.info-socials .soc-ico.lg svg {
  width: 20px;
  height: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-soft));
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -2px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
}

.form-head { margin-bottom: 0.5rem; }

.form-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 700; }

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

.form-field, .form-row label { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label, .form-row label span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-muted); font-weight: 400; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip { position: relative; cursor: pointer; }

.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.chip:hover span { border-color: var(--ink); color: var(--ink); }

.chip input:checked + span {
  background: var(--grad-red);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(237, 28, 36, 0.5);
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(237, 28, 36, 0.1);
  border: 1px solid var(--red);
  border-radius: 10px;
  color: var(--red-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-success.show { display: block; }

/* ==========================================================
   FORM TABS — Contact / Career
   ========================================================== */
.form-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tab-list {
  display: flex;
  gap: 0.4rem;
  background: rgba(245, 232, 213, 0.04);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  background: transparent;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(237, 28, 36, 0.55);
}

.tab-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tab-icon svg { width: 18px; height: 18px; }

/* Tab panels */
.tab-panel {
  display: none;
  animation: fadeUp 0.45s var(--ease) both;
}
.tab-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Form intro paragraph (career form) */
.form-intro {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.65;
  max-width: 60ch;
}

/* Required marker */
.req {
  color: var(--red-bright);
  font-style: normal;
  font-weight: 700;
}

/* ==========================================================
   FILE INPUTS (CV / Cover letter)
   ========================================================== */
.file-input {
  position: relative;
  display: block;
  cursor: pointer;
}
.file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
.file-input input[type="file"]:focus + .file-trigger {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.18);
}

.file-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(18, 4, 11, 0.5);
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ink-dim);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}
.file-input:hover .file-trigger {
  border-color: var(--red);
  background: rgba(237, 28, 36, 0.06);
  color: var(--ink);
}

.file-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(237, 28, 36, 0.12);
  border: 1px solid rgba(237, 28, 36, 0.25);
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.file-input:hover .file-icon {
  background: var(--grad-red);
  color: #fff;
  border-color: transparent;
}
.file-icon svg { width: 18px; height: 18px; }

.file-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.file-cta {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.file-name {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-name.has-file {
  color: var(--red-soft);
  font-weight: 600;
}

@media (max-width: 768px) {
  /* Tab list — full width on mobile, equal-flex tabs */
  .tab-list {
    width: 100%;
    align-self: stretch;
    margin-bottom: 1.25rem;
  }
  .tab {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }
  .tab-icon { width: 16px; height: 16px; }
  .tab-icon svg { width: 16px; height: 16px; }

  /* File upload */
  .file-trigger {
    padding: 0.85rem 0.95rem;
    gap: 0.75rem;
  }
  .file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .file-icon svg { width: 16px; height: 16px; }
  .file-cta { font-size: 0.88rem; }
  .file-name { font-size: 0.74rem; }

  .form-intro { font-size: 0.88rem; line-height: 1.6; }
}

@media (max-width: 380px) {
  .tab {
    font-size: 0.74rem;
    padding: 0.7rem 0.4rem;
  }
  .tab-icon { display: none; }
}

/* ==========================================================
   CONTACT POLISH
   ========================================================== */

.form-head h2 {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ============================================================
   CONTACT — MOBILE OVERRIDES
   ============================================================ */

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  .contact-info { position: static !important; }
}

@media (max-width: 768px) {
  .contact { padding: 2.5rem 1.25rem; }
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .contact-info { gap: 1.25rem; }

  .contact-form {
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    border-radius: 16px;
  }
  .form-head h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }

  /* Form row stacks */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  /* Inputs — bigger, no iOS zoom */
  .contact-form input,
  .contact-form textarea {
    padding: 0.85rem 1rem;
    font-size: 16px !important;
    border-radius: 10px;
  }
  .contact-form textarea { min-height: 120px; }

  /* Chips */
  .chips { gap: 0.4rem; }
  .chip span {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }

  /* Buttons full-width */
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}
