@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --brand:#5A23DB;
  --brand-dark:#4b1cc0;
  --shadow: 0 20px 60px rgba(17,24,39,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-text-size-adjust: 100%;
}

.page{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:36px 16px;
  gap:30px;
}

.top-logo img{
  height:60px;
  width:auto;
  display:block;
}

.card{
  width:100%;
  max-width:420px;
  background:var(--card);
  border-radius:7px;
  box-shadow:var(--shadow);
  border:1px solid rgba(229,231,235,.7);
  padding:22px 22px 20px;
}

.card__header{
  text-align:center;
  padding:6px 8px 14px;
}
.card__header h1{
  font-size:18px;
  margin:0 0 6px;
  font-weight:700;
}
.card__header p{
  margin:0;
  color:var(--muted);
  font-size:12.5px;
}

.modules{
  border:1px solid var(--border);
  border-radius:7px;
  padding:10px;
  margin:0;
}

.module{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:10px;
  cursor:pointer;
  border:1px solid transparent;
}

.module + .module{
  margin-top:6px;
  border-top:1px dashed rgba(229,231,235,.8);
  padding-top:14px;
}

.module:hover{
  background:rgba(90,35,219,.04);
}

.module__title{
  display:block;
  font-weight:600;
  font-size:13px;
}
.module__subtitle{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}
.module__radio{
  width:18px;
  height:18px;
  accent-color: var(--brand);
}

.total{
  margin:14px 0 6px;
  padding:18px 10px 14px;
  text-align:center;
  border-top:1px solid rgba(229,231,235,.8);
  border-bottom:1px solid rgba(229,231,235,.8);
}
.total__label{
  color:var(--muted);
  font-size:12px;
}
.total__value{
  margin-top:6px;
  font-weight:800;
  font-size:20px;
  color:var(--brand);
}

.fields{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.field__label{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#374151;
  margin-bottom:6px;
}
.field__input{
  width:100%;
  border:1px solid var(--border);
  border-radius:7px;
  padding:11px 12px;
  font-size:13px;
  outline:none;
  background:#fff;
}
.field__input:focus{
  border-color:rgba(90,35,219,.45);
  box-shadow:0 0 0 4px rgba(90,35,219,.12);
}

.btn{
  margin-top:14px;
  width:100%;
  border:0;
  border-radius:7px;
  padding:12px 14px;
  font-weight:700;
  font-size:13px;
  color:#fff;
  background:var(--brand);
  cursor:pointer;
}
.btn:hover{background:var(--brand-dark)}
.btn:disabled{opacity:.65; cursor:not-allowed}

.footer{
  margin-top:auto;
  padding:22px 0 4px;
  color:var(--muted);
  font-size:12px;
}

.notice{
  border:1px solid rgba(229,231,235,.9);
  border-radius:12px;
  background:#fff;
  padding:14px 14px;
}

.notice h2{
  margin:0 0 6px;
  font-size:15px;
}
.notice p{margin:0; color:var(--muted); font-size:13px; line-height:1.45;}
.notice code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}

/* Mobile responsiveness */
@media (max-width: 480px){
  .page{
   padding: 40px 12px;
   gap: 20px;
  }

  .top-logo img{
    height:44px;
  }

  .card{
    max-width: 100%;
    padding:16px 14px 14px;
    border-radius:10px;
  }

  .card__header{
    padding:4px 6px 10px;
  }

  .card__header h1{
    font-size:16px;
  }

  .modules{
    padding:8px;
    border-radius:10px;
  }

  .module{
    padding:10px 10px;
    border-radius:10px;
  }

  .module + .module{
    padding-top:12px;
  }

  .module__title{
    font-size:12.5px;
  }

  .module__subtitle{
    font-size:11.5px;
  }

  .total{
    padding:14px 10px 12px;
  }

  .total__value{
    font-size:18px;
  }

  .field__input{
    padding:12px 12px;
    font-size:14px; /* prevents iOS zoom on focus */
    border-radius:10px;
  }

  .btn{
    padding:13px 14px;
    font-size:14px;
    border-radius:10px;
  }
}
