/* ============================================================
   BOOK A CALL POPUP STYLES
   Based on Figma design (Node: 10455:13922)
   ============================================================ */

/* ── Overlay ──────────────────────────────────────────────── */
.book-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.book-call-overlay.show {
  opacity: 1;
  visibility: visible;
}

.book-call-overlay.show .book-call-popup {
  transform: translateY(0);
  opacity: 1;
}

/* ── Popup Card ───────────────────────────────────────────── */
.book-call-popup {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Header (title + subtitle) ────────────────────────────── */
.book-call-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.book-call-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.book-call-title {
  font-family: var(--font-primary);
  font-size: 42px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.96px;
  color: var(--primary-color);
  margin: 0;
  text-align: left;
}

.book-call-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.book-call-close:hover {
  opacity: 1;
}

.book-call-subtitle {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--slate-600);
  margin: 0;
  text-align: left;
}

/* ── Form Content Area ────────────────────────────────────── */
.book-call-content {
  width: 100%;
  
  padding: 10px 0 0 0;
}

/* ── Form Layout ──────────────────────────────────────────── */
.book-call-form {
  display: flex;
  flex-direction: column;
  gap: 45px;
  width: 100%;
}

.book-call-fields-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.book-call-row {
  display: flex;
  gap: 32px;
  width: 100%;
}

/* ── Field ────────────────────────────────────────────────── */
.book-call-field {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(21px);
  -webkit-backdrop-filter: blur(21px);
  display: flex;
  align-items: center;
  gap: 2px;
  transition: border-color 0.2s ease;
}

.book-call-field:focus-within {
  border-color: var(--primary-500);
}

.book-call-field input,
.book-call-field select {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #020617;
  outline: none;
}

.book-call-field input::placeholder {
  color: #94A3B8;
}

/* ── Floating Label ───────────────────────────────────────── */
.book-call-field-label {
  position: absolute;
  top: -12px;
  left: 11px;
  background: #ffffff;
  padding: 0 6px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #0F172A;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Dropdown ─────────────────────────────────────────────── */
.book-call-field-dropdown select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: #020617;
}

.book-call-dropdown-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  color: #0F172A;
}

/* ── Message / Textarea ───────────────────────────────────── */
.book-call-message-field {
  height: 90px;
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.book-call-message-field textarea {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #020617;
  outline: none;
  resize: none;
}

.book-call-message-field textarea::placeholder {
  color: #94A3B8;
}

/* ── Submit Button (inherits .btn .btn-primary from style.css) ── */
.book-call-submit {
  width: 100%;
  justify-content: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .book-call-popup {
    padding: 24px 20px;
    gap: 24px;
    border-radius: 14px;
  }

  .book-call-title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.56px;
  }

  .book-call-content {
    padding: 10px 16px;
    border-radius: 16px;
  }

  .book-call-row {
    flex-direction: column;
    gap: 24px;
  }

  .book-call-fields-group {
    gap: 24px;
  }

  .book-call-form {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .book-call-popup {
    padding: 10px 0px;
  }

  .book-call-title {
    font-size: 18px;
    line-height: 36px;
  }
  .book-call-subtitle{
    font-size: 14px;
  }

  .book-call-field-label {
    font-size: 13px;
  }
  .book-call-field input,
.book-call-field select {
    height: 35px;
    font-size: 14px;
}
.book-call-field textarea{
    font-size: 14px;
}
.book-call-header{
    padding: 10px 20px 0 20px;
}
}