/* ============================================================
   teklif.css — /teklif (Teklif Al) sayfası.
   routes/teklif.js → extraHead ile yüklenir. tokens.css kullanır.
   ============================================================ */

/* ——— Hero ——— */
.teklif-hero {
  position: relative;
  min-height: 60vh;
  min-height: max(400px, 60vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-hero);
  color: #fff;
}

.teklif-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.teklif-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.teklif-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) clamp(1.25rem, 4vw, 2rem) 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.teklif-hero__copy {
  max-width: 36rem;
}

.teklif-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.teklif-hero__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
}

.teklif-hero__scroll {
  flex-shrink: 0;
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}

.teklif-hero__scroll:hover {
  color: #fff;
}

/* ——— Content / form ——— */
.teklif-content {
  background: #f7f8fa;
  padding: var(--section-pad-md) 0;
  scroll-margin-top: var(--header-height);
}

.teklif-content__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.teklif-success {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--green-a10);
  border: 1px solid var(--green-a30);
  color: var(--brand-green);
  font-size: 0.9375rem;
  font-weight: 600;
}

.teklif-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

/* Sol sütun */
.teklif-info__label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.teklif-info__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.teklif-info__body {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-a75);
  max-width: 28rem;
}

.teklif-info__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.teklif-info__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color var(--dur-fast) ease;
}

.teklif-info__link:hover {
  color: var(--brand-green);
}

.teklif-info__icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 0.15rem;
  color: var(--brand-green);
}

.teklif-info__link--address span:last-child {
  flex: 1;
}

/* Form */
.teklif-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.teklif-form__row {
  display: grid;
  gap: 1.25rem;
}

.teklif-form__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teklif-form__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teklif-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.teklif-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.teklif-field input,
.teklif-field select,
.teklif-field textarea {
  width: 100%;
  padding: 0.65rem 0;
  border: none;
  border-bottom: 1px solid rgba(10, 25, 41, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  outline: none;
  transition: border-color var(--dur-fast) ease;
}

.teklif-field input::placeholder,
.teklif-field textarea::placeholder {
  color: rgba(10, 25, 41, 0.4);
}

.teklif-field input:focus,
.teklif-field select:focus,
.teklif-field textarea:focus {
  border-bottom-color: var(--brand-green);
}

.teklif-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a1929' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  background-size: 12px;
}

.teklif-field select:invalid,
.teklif-field select option[value=""] {
  color: rgba(10, 25, 41, 0.45);
}

.teklif-field select option {
  color: var(--ink);
}

.teklif-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.teklif-kvkk {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.teklif-kvkk input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--brand-green);
  cursor: pointer;
}

.teklif-kvkk label {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-a75);
  cursor: pointer;
}

.teklif-kvkk a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.teklif-kvkk a:hover {
  color: var(--brand-green);
}

.teklif-form > .btn-primary {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .teklif-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 2rem;
  }

  .teklif-hero__scroll {
    align-self: flex-start;
  }

  .teklif-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .teklif-form__row--3,
  .teklif-form__row--2 {
    grid-template-columns: 1fr;
  }

  .teklif-form > .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teklif-hero__scroll,
  .teklif-info__link,
  .teklif-field input,
  .teklif-field select,
  .teklif-field textarea {
    transition: none;
  }
}
