@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Rubik:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   BOOK CONSULTATION POPUP
   Black surface, amber #ffaa17, Oswald / Rubik / Space Grotesk
   Layout: fixed top (heading + plus), scrolling middle (form sets),
   fixed bottom (Close + Book consultation).
   ============================================================ */

.bc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  animation: bc-fade 0.25s ease both;
}

.bc-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 23, 0.4);
  border-radius: 16px;
  background:
    radial-gradient(120% 40% at 50% 0%, rgba(255, 170, 23, 0.1), transparent 60%),
    #0b0905;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 170, 23, 0.12);
  color: #ffffff;
  animation: bc-rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes bc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bc-rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bc-set-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bc-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ---------- top: heading + plus ---------- */
.bc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3.5vw, 40px) 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bc-head-text {
  min-width: 0;
}

.bc-eyebrow {
  margin: 0 0 6px;
  color: #ffaa17;
  font-family: "Rubik", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.bc-heading {
  margin: 0 0 8px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.bc-heading span {
  color: #ffaa17;
}

.bc-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.6;
}

.bc-lead strong {
  color: #ffffff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bc-head-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bc-count {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Rubik", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* plus button, top right */
.bc-plus {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffaa17, #ffbd45);
  color: #000000;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(255, 170, 23, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.bc-plus:hover:not(:disabled),
.bc-plus:focus-visible {
  transform: rotate(90deg) scale(1.06);
  box-shadow: 0 0 32px rgba(255, 170, 23, 0.7);
  outline: none;
}

.bc-plus:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- middle: form sets ---------- */
.bc-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: 24px clamp(20px, 3.5vw, 40px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 170, 23, 0.5) transparent;
}

.bc-body::-webkit-scrollbar {
  width: 8px;
}

.bc-body::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(255, 170, 23, 0.5);
}

.bc-set {
  flex-shrink: 0;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(255, 170, 23, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  animation: bc-set-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bc-set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.bc-set-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #ffffff;
}

.bc-set-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffaa17;
  color: #000000;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* minus button on each form */
.bc-minus {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 170, 23, 0.55);
  border-radius: 50%;
  background: transparent;
  color: #ffaa17;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.bc-minus:hover,
.bc-minus:focus-visible {
  border-color: #ff6b5e;
  background: #ff6b5e;
  color: #000000;
  transform: scale(1.08);
  outline: none;
}

/* ---------- fields ---------- */
.bc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.bc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  min-width: 0;
}

.bc-field:last-child {
  margin-bottom: 0;
}

.bc-field--full {
  grid-column: 1 / -1;
}

.bc-field label {
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.bc-field input,
.bc-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  background: #050403;
  color: #ffffff;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bc-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.bc-field input:focus,
.bc-field select:focus {
  border-color: #ffaa17;
  box-shadow: 0 0 18px rgba(255, 170, 23, 0.25);
}

.bc-field input[aria-invalid="true"] {
  border-color: #ff6b5e;
}

.bc-field select option {
  background: #0b0905;
  color: #ffffff;
}

/* country code + number in one row */
.bc-phone {
  display: flex;
  gap: 10px;
}

.bc-phone select {
  flex: 0 0 42%;
  width: 42%;
  min-width: 0;
  padding-right: 8px;
  text-overflow: ellipsis;
  cursor: pointer;
}

.bc-phone input {
  flex: 1;
  min-width: 0;
}

.bc-error {
  color: #ff8a7f;
  font-size: 0.9rem;
}

/* ---------- text editor ---------- */
.bc-editor {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #050403;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bc-editor:focus-within {
  border-color: #ffaa17;
  box-shadow: 0 0 18px rgba(255, 170, 23, 0.25);
}

.bc-editor--error {
  border-color: #ff6b5e;
}

.bc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f0c07;
}

.bc-tool {
  min-width: 38px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Rubik", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bc-tool--bold {
  font-weight: 700;
}

.bc-tool--italic {
  font-style: italic;
}

.bc-tool--underline {
  text-decoration: underline;
}

.bc-tool:hover,
.bc-tool:focus-visible {
  border-color: #ffaa17;
  color: #ffaa17;
  outline: none;
}

.bc-tool.is-on {
  border-color: #ffaa17;
  background: #ffaa17;
  color: #000000;
}

/* the big writing area */
.bc-editable {
  min-height: 220px;
  max-height: 40vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 16px 18px;
  outline: none;
  color: #ffffff;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.bc-editable:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.bc-editable ul,
.bc-editable ol {
  margin: 0.4em 0;
  padding-left: 1.5em;
}

.bc-editable a {
  color: #ffaa17;
}

/* ---------- bottom: Close + Book consultation ---------- */
.bc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px clamp(20px, 3.5vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
}

.bc-footer-error {
  flex: 1 1 100%;
  margin: 0;
  text-align: right;
}

.bc-btn {
  padding: 14px 30px;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.bc-btn--solid {
  border: 0;
  background: linear-gradient(90deg, #ffaa17, #ffbd45);
  color: #000000;
}

.bc-btn--solid:hover:not(:disabled),
.bc-btn--solid:focus-visible {
  box-shadow: 0 0 26px rgba(255, 170, 23, 0.55);
  transform: translateY(-2px);
  outline: none;
}

.bc-btn--solid:disabled {
  opacity: 0.6;
  cursor: wait;
}

.bc-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #ffffff;
}

.bc-btn--ghost:hover,
.bc-btn--ghost:focus-visible {
  border-color: #ffaa17;
  color: #ffaa17;
  outline: none;
}

/* ---------- success view ---------- */
.bc-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  text-align: center;
  overflow-y: auto;
}

.bc-done .bc-lead {
  max-width: 520px;
  margin-bottom: 26px;
}

.bc-done-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 2px solid #ffaa17;
  border-radius: 50%;
  color: #ffaa17;
  box-shadow: 0 0 30px rgba(255, 170, 23, 0.4);
}

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .bc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-head {
    gap: 12px;
  }

  .bc-count {
    display: none;
  }

  .bc-editable {
    min-height: 180px;
  }

  .bc-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .bc-footer-error {
    text-align: left;
  }

  .bc-btn {
    width: 100%;
  }
}

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .bc-overlay,
  .bc-dialog,
  .bc-set {
    animation: none;
  }

  .bc-plus,
  .bc-minus,
  .bc-btn,
  .bc-tool,
  .bc-field input,
  .bc-field select,
  .bc-editor {
    transition: none;
  }
}
/* Project rating block inside the Book consultation popup.
   Amber #ffaa17, Oswald / Rubik / Space Grotesk. */

.bc-rate-question {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
}

.bc-rate-question span {
  color: #ffaa17;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* row of five stars + the label beside them */
.bc-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin-bottom: 22px;
}

.bc-star {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 170, 23, 0.22);
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.bc-star svg {
  display: block;
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: none;
}

/* filled star: bright amber with a soft glow */
.bc-star.is-on {
  color: #ffaa17;
  filter: drop-shadow(0 0 8px rgba(255, 170, 23, 0.7));
}

.bc-star:hover,
.bc-star:focus-visible {
  transform: scale(1.15);
  outline: none;
}

.bc-star-label {
  min-width: 120px;
  margin-left: 10px;
  color: #ffaa17;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* comment box */
.bc-rate textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  background: #050403;
  color: #ffffff;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bc-rate textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.bc-rate textarea:focus {
  border-color: #ffaa17;
  box-shadow: 0 0 18px rgba(255, 170, 23, 0.25);
}

@media (max-width: 700px) {
  .bc-star {
    width: 46px;
    height: 46px;
  }
  .bc-star-label {
    min-width: 0;
    width: 100%;
    margin: 6px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-star,
  .bc-rate textarea {
    transition: none;
  }
}