/* ============================================================
   Goathletic — pages/contact.css
   İletişim: hero, bilgi + harita kartı ve iletişim formu.
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────── */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 13rem 6% 5rem;
  text-align: center;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 40%,
    rgba(255, 107, 0, 0.13) 0%,
    transparent 65%);
  pointer-events: none;
}
.contact-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}
.contact-hero-inner {
  position: relative;
  z-index: 2;
}
.contact-hero h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.contact-hero h1 span { color: var(--accent); }
.contact-hero p {
  max-width: 520px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.46);
}

/* ── Video arka planlı bölüm ────────────────────────────── */
.grid-bg {
  position: relative;
  overflow: hidden;
}
.grid-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}
.grid-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.52);
  pointer-events: none;
}
.grid-bg::before,
.grid-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 260px;
  z-index: 2;
  pointer-events: none;
}
.grid-bg::before {
  top: 0;
  background: linear-gradient(to bottom, #000 20%, transparent);
}
.grid-bg::after {
  bottom: 0;
  background: linear-gradient(to top, #000 20%, transparent);
}

.contact-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 6% 8rem;
}

/* ── Sol: bilgi + harita ────────────────────────────────── */
.contact-info-card {
  display: flex;
  flex-direction: column;
}
.contact-info-inner { padding: 2.4rem 2.2rem 2rem; }

.contact-info-label {
  margin-bottom: 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-info-heading {
  margin-bottom: 0.5rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.contact-info-heading span { color: var(--accent); }
.contact-info-sub {
  margin-bottom: 2rem;
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.45);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-style: normal; /* <address> varsayılan italiğini kaldırır */
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.info-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.info-value {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s;
}
a.info-value:hover { color: var(--accent); }

.info-divider {
  height: 1px;
  margin: 1.6rem 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.08), transparent);
}

/* ── Harita ─────────────────────────────────────────────── */
.map-wrap {
  position: relative;
  flex: 1;
  min-height: 240px;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: none;
  border-radius: 0 0 24px 24px;
  /* koyu tema ile uyumlu hale getirir */
  filter: grayscale(1) invert(0.88) contrast(0.9) brightness(0.45) sepia(0.25) hue-rotate(180deg);
}
.map-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent);
  pointer-events: none;
}

/* ── Sağ: form ──────────────────────────────────────────── */
.contact-form-card { padding: 2.4rem 2.4rem 2.6rem; }

.form-heading {
  margin-bottom: 0.45rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.form-heading span { color: var(--accent); }
.form-sub {
  margin-bottom: 2rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 14px;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255, 255, 255, 0.22); }

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(255, 107, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
  background: rgba(255, 255, 255, 0.06);
}
.form-input.error,
.form-textarea.error {
  border-color: rgba(255, 60, 60, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.08);
}

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

/* alan altındaki hata mesajı */
.form-error {
  display: none;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #ff6b6b;
}
.form-error.visible { display: block; }

/* ASP.NET MVC doğrulama sınıfları — hata varken görünür olur.
   asp-validation-for / asp-validation-summary bu sınıfları kendisi basar. */
.form-error.field-validation-error,
.form-error.validation-summary-errors { display: block; }

.form-error.validation-summary-errors { margin-bottom: 1rem; }
.form-error.validation-summary-errors ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* hatalı alanın kenarlığı — jQuery validation input-validation-error basar */
.form-input.input-validation-error,
.form-textarea.input-validation-error {
  border-color: rgba(255, 60, 60, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.08);
}

.form-submit {
  width: 100%;
  margin-top: 20px;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: transform 0.22s, box-shadow 0.22s, opacity 0.22s;
}
.form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 107, 0, 0.5), 0 8px 24px rgba(255, 107, 0, 0.28);
}
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.form-submit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s;
}
.form-submit:hover:not(:disabled) svg { transform: translateX(3px); }

/* ── Başarı ekranı ──────────────────────────────────────── */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
}
.form-success.visible { display: flex; }

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.5s var(--ease) both;
}
@keyframes successPop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.success-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.success-desc {
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .sr-d1 { transition-delay: 0s; }
}
@media (max-width: 560px) {
  .form-row           { grid-template-columns: 1fr; }
  .contact-form-card  { padding: 1.8rem; }
  .contact-info-inner { padding: 1.8rem 1.8rem 1.4rem; }
}
