

/* ===== Contact (İletişim) ===== */

.contact-wrap{
  --pad: clamp(14px, 2.2vw, 22px);
  --radius: 18px;
  --line: color-mix(in srgb, currentColor 14%, transparent);
  --muted: color-mix(in srgb, currentColor 62%, transparent);
  --soft: color-mix(in srgb, currentColor 8%, transparent);
  --soft2: color-mix(in srgb, currentColor 6%, transparent);

  max-width: 980px;
  margin: 22px auto;
  padding: 0 var(--margin-left-right, 16px);
}

.contact-card{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--soft), transparent 60%);
  box-shadow:
    0 20px 55px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

.contact-head{
  padding: var(--pad);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--soft2), transparent);
}

.contact-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent, #3aa6ff) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #3aa6ff) 26%, transparent);
}

.contact-icon svg{
  width: 22px;
  height: 22px;
  opacity: .95;
}

.contact-title{
  margin: 0;
  font-size: clamp(20px, 2.1vw, 26px);
}

.contact-sub{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-body{
  padding: var(--pad);
  display: grid;
  gap: 18px;
}

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

@media (max-width: 620px){
  .form-grid{ grid-template-columns: 1fr; }
}

/* ===== Floating Inputs ===== */

.fld{
  position: relative;
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid var(--line);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.fld:focus-within{
  border-color: color-mix(in srgb, var(--accent, #3aa6ff) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #3aa6ff) 18%, transparent);
}

.fld input,
.fld textarea,
.fld select{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  padding: 18px 14px 12px;
  font-size: 16px;
  border-radius: 14px;
  appearance: none;
}

.fld textarea{
  min-height: 140px;
  resize: vertical;
  padding-top: 20px;font-family:var(--family);resize: none;
  overflow: hidden;
}

.fld label{
  position: absolute;
  left: 12px;
  top: 14px;
  padding: 0 6px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: .16s ease;
}

/* Float logic */
.fld input:focus + label,
.fld textarea:focus + label,
.fld select:focus + label,
.fld input:not(:placeholder-shown) + label,
.fld textarea:not(:placeholder-shown) + label,
.fld select:valid + label{
  top: 0px;padding:0px 2px;
  transform: scale(.86);
  color: color-mix(in srgb, var(--accent, #3aa6ff) 80%, white 0%);
}

/* ===== Buttons ===== */

.contact-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.btn{
  border: 1px solid var(--line);
  background: color-mix(in srgb, currentColor 7%, transparent);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}

.btn.primary{
  border-color: color-mix(in srgb, var(--accent, #3aa6ff) 45%, transparent);
  background: color-mix(in srgb, var(--accent, #3aa6ff) 22%, transparent);color:var(--text-primary);
}

/* ===== States ===== */

button.is-loading{
  opacity: .7;
  pointer-events: none;
}

button.is-success{
  background: rgba(40, 167, 69, .25);
  border-color: rgba(40, 167, 69, .5);
  color: #46be67;
  cursor: default;
}

/* ===== Feedback ===== */

.form-feedback{
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.form-feedback.success{
  background: rgba(40, 167, 69, .15);
  border: 1px solid rgba(40, 167, 69, .4);
}

.form-feedback.error{
  background: rgba(220, 53, 69, .15);
  border: 1px solid rgba(220, 53, 69, .4);
}

.form-feedback.fade{
  opacity: .6;
  transition: opacity .4s ease;
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}