/* ══════════════════════════════════════════════════════════
   Sizi Arayalım Modal — assets/css/call-modal.css
   ══════════════════════════════════════════════════════════ */

.call-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 20, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.call-modal-overlay[hidden] { display: none !important; }
.call-modal-overlay.is-open  { opacity: 1; }
body.call-modal-open         { overflow: hidden; }

/* ── Kutu ── */
.call-modal-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(8, 20, 42, 0.35),
    0 0 0 1px rgba(18, 48, 94, 0.10);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.call-modal-overlay.is-open .call-modal-box {
  transform: translateY(0) scale(1);
}

/* ── Dekoratif üst şerit ── */
.call-modal-stripe {
  height: 4px;
  background: linear-gradient(90deg, #12305e 0%, #2d6099 40%, #5a9854 100%);
}

/* ── Kapat butonu ── */
.call-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(18, 48, 94, 0.15);
  background: transparent;
  color: #8aaccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  z-index: 5;
}
.call-modal-close:hover {
  background: #12305e;
  border-color: #12305e;
  color: #ffffff;
  transform: rotate(90deg);
}
.call-modal-close svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ── Başlık alanı ── */
.call-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(18, 48, 94, 0.08);
}
.call-modal-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12305e, #2d6099);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 48, 94, 0.25);
}
.call-modal-icon svg {
  width: 22px;
  height: 22px;
}
.call-modal-head-text {
  flex: 1;
  min-width: 0;
  padding-right: 32px;
}
.call-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #12305e;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 6px;
}
.call-modal-sub {
  font-size: 13px;
  font-weight: 300;
  color: #666;
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ── Form ── */
.call-modal-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.call-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .call-modal-row { grid-template-columns: 1fr; }
}
.call-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Label */
.cm-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #12305e;
}
.cm-required { color: #c87d2a; margin-left: 2px; }

/* Input sarmalayıcı */
.cm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cm-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #8aaccc;
  pointer-events: none;
  flex-shrink: 0;
  transition: color 0.2s;
}
.cm-textarea-wrap  { align-items: flex-start; }
.cm-textarea-icon  { top: 14px; transform: none; }

.cm-input-wrap input,
.cm-input-wrap textarea {
  width: 100%;
  padding: 13px 14px 13px 40px;
  border: 1.5px solid rgba(18, 48, 94, 0.15);
  border-radius: 3px;
  background: #f6f9fc;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #111a26;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  resize: none;
  box-sizing: border-box;
}
.cm-input-wrap textarea {
  padding-top: 14px;
  line-height: 1.6;
}
.cm-input-wrap input::placeholder,
.cm-input-wrap textarea::placeholder {
  color: rgba(18, 48, 94, 0.30);
  font-weight: 300;
}
.cm-input-wrap input:focus,
.cm-input-wrap textarea:focus {
  border-color: #2d6099;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 96, 153, 0.10);
}
.cm-input-wrap:focus-within .cm-input-icon { color: #2d6099; }

/* Hata state */
.call-modal-field.has-error .cm-input-wrap input,
.call-modal-field.has-error .cm-input-wrap textarea {
  border-color: #d94f4f;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.10);
}
.call-modal-field.has-error .cm-input-icon { color: #d94f4f; }
.cm-error {
  display: none;
  font-size: 11px;
  color: #d94f4f;
  letter-spacing: 0.02em;
}
.call-modal-field.has-error .cm-error { display: block; }

/* Gönder butonu */
.call-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 36px;
  background: linear-gradient(135deg, #5a9854, #75aa6f);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-end;
  min-width: 160px;
}
.call-modal-submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.call-modal-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #12305e, #2d6099);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 48, 94, 0.30);
}
.call-modal-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
@media (max-width: 540px) {
  .call-modal-submit { align-self: stretch; }
}

/* Başarı mesajı */
.call-modal-success {
  padding: 40px 28px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.call-modal-success[hidden] { display: none !important; }
.cm-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a9854, #75aa6f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(90, 152, 84, 0.35);
  animation: cmSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.cm-success-icon svg { width: 28px; height: 28px; }
@keyframes cmSuccessPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.cm-success-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #12305e;
  margin: 0;
}
.cm-success-text {
  font-size: 14px;
  font-weight: 300;
  color: #666;
  line-height: 1.7;
  margin: 0;
}
.cm-success-close {
  margin-top: 8px;
  padding: 10px 28px;
  background: transparent;
  border: 1.5px solid rgba(18, 48, 94, 0.20);
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #12305e;
  cursor: pointer;
  transition: all 0.25s;
}
.cm-success-close:hover {
  background: #12305e;
  border-color: #12305e;
  color: #ffffff;
}

/* Mobil — bottom sheet */
@media (max-width: 479px) {
  .call-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .call-modal-box {
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
  }
  .call-modal-overlay.is-open .call-modal-box {
    transform: translateY(0);
  }
  .call-modal-head  { padding: 20px 20px 16px; gap: 14px; }
  .call-modal-form  { padding: 18px 20px 24px; }
  .call-modal-title { font-size: 18px; }
  .call-modal-icon  { width: 44px; height: 44px; }
  .call-modal-icon svg { width: 18px; height: 18px; }
}
