/* =====================================================
   BeeKeeper Capital
   STYLE.CSS - PART 1
   Reset + Layout + Hero + Card + Form
===================================================== */

:root {
  --primary: #ff7a00;
  --primary-dark: #ea6900;
  --primary-light: #fff4ea;

  --bg: #edf2f7;

  --white: #ffffff;

  --text: #202124;

  --grey: #7d8794;

  --border: #e7ecf2;

  --radius: 24px;

  --shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;

  background: var(--bg);

  color: var(--text);
}

/* =====================================================
   APP
===================================================== */

.app {
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

/* =====================================================
   DESKTOP MODE
===================================================== */

@media (min-width: 768px) {
  body {
    padding: 40px;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    background: linear-gradient(180deg, #fff8f0, #edf2f7);
  }

  .app {
    width: 430px;

    border-radius: 28px;

    overflow: hidden;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  }
}

/* =====================================================
   HERO
===================================================== */

.hero {
  background: linear-gradient(135deg, #ff7a00, #ffa63d);

  color: #fff;

  padding: 28px 22px 30px;
}

.logo-circle {
  width: 64px;
  height: 64px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 30px;

  margin-bottom: 18px;
}

.hero h1 {
  font-size: 28px;

  font-weight: 700;

  line-height: 1.2;
}

.hero p {
  margin-top: 10px;

  font-size: 15px;

  line-height: 1.6;

  opacity: 0.95;
}

/* =====================================================
   LIMIT CARD
===================================================== */

.limit-card {
  margin-top: 24px;

  background: #fff;

  color: #222;

  border-radius: 22px;

  padding: 22px;

  box-shadow: var(--shadow);
}

.limit-card span {
  display: block;

  color: var(--grey);

  font-size: 13px;
}

.limit-card h2 {
  color: var(--primary);

  font-size: 34px;

  margin: 10px 0;

  font-weight: 700;
}

.limit-card small {
  color: var(--grey);

  font-size: 13px;
}

/* =====================================================
   CONTENT
===================================================== */

.container {
  padding: 20px;
}

/* =====================================================
   CARD
===================================================== */

.card {
  background: #fff;

  border-radius: 22px;

  padding: 22px;

  margin-bottom: 18px;

  box-shadow: var(--shadow);
}

.section-title {
  margin-bottom: 20px;
}

.section-title h3 {
  font-size: 22px;

  font-weight: 700;
}

/* =====================================================
   FORM
===================================================== */

.form-group {
  margin-bottom: 18px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;

  font-weight: 600;
}

.form-group input {
  width: 100%;

  height: 58px;

  border: 1px solid var(--border);

  border-radius: 16px;

  padding: 0 18px;

  font-size: 15px;

  font-family: "Poppins", sans-serif;

  outline: none;

  transition: 0.25s;

  background: #fff;
}

.form-group input::placeholder {
  color: #a3acb8;
}

.form-group input:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

/* =====================================================
   SPACE
===================================================== */

.card + .card {
  margin-top: 18px;
}

/* =====================================================
   BeeKeeper Capital
   STYLE.CSS - PART 2
   Selector + Summary + Button + Bottom Sheet
===================================================== */

/* =====================================================
   SELECTOR
===================================================== */

.selector {
  width: 100%;

  background: #fafbfd;

  border: 1px solid var(--border);

  border-radius: 18px;

  padding: 18px 20px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  cursor: pointer;

  transition: 0.25s;
}

.selector:hover {
  border-color: var(--primary);

  background: #fff;
}

.selector small {
  display: block;

  color: var(--grey);

  font-size: 13px;

  margin-bottom: 5px;
}

.selector h2 {
  color: var(--primary);

  font-size: 28px;

  font-weight: 700;
}

.selector span {
  font-size: 24px;

  color: #999;
}

/* =====================================================
   SUMMARY
===================================================== */

.summary {
  padding-bottom: 10px;
}

.summary-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 16px 0;

  border-bottom: 1px dashed #ececec;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span {
  color: var(--grey);

  font-size: 15px;
}

.summary-row strong {
  font-size: 17px;

  font-weight: 600;
}

.summary-row.total {
  margin-top: 8px;

  padding-top: 20px;
}

.summary-row.total strong {
  color: var(--primary);

  font-size: 26px;

  font-weight: 700;
}

/* =====================================================
   FOOTER
===================================================== */

.sticky-footer {
  position: fixed;

  left: 0;

  right: 0;

  bottom: 0;

  background: #fff;

  padding: 15px 18px;

  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);

  z-index: 99;
}

.btn-primary {
  width: 100%;

  height: 56px;

  border: none;

  border-radius: 18px;

  background: linear-gradient(135deg, #ff7a00, #ff9c24);

  color: #fff;

  font-size: 17px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  flex: 1;

  height: 52px;

  border: none;

  border-radius: 16px;

  background: #edf2f7;

  font-weight: 600;

  cursor: pointer;
}

/* =====================================================
   BOTTOM SHEET
===================================================== */

.bottom-sheet {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.35);

  display: none;

  justify-content: flex-end;

  flex-direction: column;

  z-index: 999;
}

.bottom-sheet.active {
  display: flex;
}

.sheet-content {
  background: #fff;

  border-radius: 28px 28px 0 0;

  padding: 25px;

  animation: sheetUp 0.25s ease;

  max-height: 80vh;

  overflow: auto;
}

.sheet-handle {
  width: 70px;

  height: 6px;

  background: #ddd;

  border-radius: 99px;

  margin: 0 auto 20px;
}

.sheet-content h3 {
  font-size: 20px;

  margin-bottom: 20px;
}

/* =====================================================
   ITEM
===================================================== */

.sheet-item {
  padding: 18px;

  border: 1px solid var(--border);

  border-radius: 18px;

  margin-bottom: 14px;

  cursor: pointer;

  transition: 0.2s;
}

.sheet-item:hover {
  border-color: var(--primary);
}

.sheet-item.active {
  background: var(--primary-light);

  border: 2px solid var(--primary);
}

.sheet-item-title {
  font-size: 17px;

  font-weight: 700;
}

.sheet-item-sub {
  margin-top: 5px;

  color: var(--grey);

  font-size: 13px;
}

/* =====================================================
   CONFIRM
===================================================== */

.confirm-action {
  display: flex;

  gap: 12px;

  margin-top: 25px;
}

/* =====================================================
   LOADING
===================================================== */

.loading {
  position: fixed;

  inset: 0;

  background: rgba(255, 255, 255, 0.92);

  display: none;

  justify-content: center;

  align-items: center;

  flex-direction: column;

  z-index: 2000;
}

.loading.active {
  display: flex;
}

.spinner {
  width: 55px;

  height: 55px;

  border-radius: 50%;

  border: 5px solid #ececec;

  border-top-color: var(--primary);

  animation: spin 0.8s linear infinite;
}

.loading p {
  margin-top: 18px;

  color: var(--grey);
}

/* =====================================================
   TOAST
===================================================== */

.toast {
  position: fixed;

  left: 50%;

  bottom: 95px;

  transform: translateX(-50%);

  background: #222;

  color: #fff;

  padding: 12px 22px;

  border-radius: 30px;

  font-size: 14px;

  display: none;

  z-index: 3000;
}

.toast.show {
  display: block;

  animation: toast 0.35s;
}

/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #ddd;

  border-radius: 20px;
}

/* =====================================================
   ANIMATION
===================================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes toast {
  from {
    opacity: 0;

    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;

    transform: translate(-50%, 0);
  }
}

/* =====================================================
   DESKTOP FIX
===================================================== */

@media (min-width: 768px) {
  .sticky-footer {
    left: 50%;

    transform: translateX(-50%);

    width: 430px;

    border-radius: 0 0 28px 28px;
  }

  .bottom-sheet {
    align-items: center;

    justify-content: center;
  }

  .sheet-content {
    width: 430px;

    border-radius: 24px;

    max-height: 90vh;
  }
}

/* =====================================================
   MOBILE FIX
===================================================== */

@media (max-width: 767px) {
  body {
    padding-bottom: 90px;
  }

  .hero {
    border-radius: 0;
  }

  .app {
    border-radius: 0;
  }

  .container {
    padding: 16px;
  }

  .limit-card h2 {
    font-size: 30px;
  }

  .selector h2 {
    font-size: 24px;
  }

  .summary-row.total strong {
    font-size: 24px;
  }
}
