/* Основен контейнер */
.bazi-widget{
  /*max-width:700px;*/
  /*margin:40px 20px;*/
  padding:28px 22px;
  border:1px solid #e0e0e0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height:1.6;
}

.bazi-widget h3{
  margin-bottom:22px;
  text-align:center;
  font-size:22px;
  font-weight:700;
  color:#333;
}

/* Формата */
.bazi-widget .row{
  margin-bottom:20px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.bazi-widget label{
  font-weight:600;
  font-size:15px;
  color:#444;
}

/* Полета */
.bazi-widget input[type="date"],
.bazi-widget input[type="time"],
.bazi-widget input[type="text"]{
  padding:14px 12px;
  border:1px solid #ccc;
  border-radius:10px;
  font-size:16px;
  line-height:1.4;
  box-sizing:border-box;
  -webkit-text-size-adjust:100%; /* фиксира zoom на iOS */
}

/* Бутон */
.bazi-widget button{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  background:#3a7c45;
  color:#fff;
  font-size:17px;
  font-weight:600;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.1s ease;
}

.bazi-widget button:hover{
  background:#3a7c44;
}

.bazi-widget button:active{
  transform:scale(0.98);
}

.nohour-placeholder {
  color: #888;
  text-align: center;
  font-style: italic;
}

/* Унифициран стил за дата и час (iOS + всички браузъри) */
input[type="date"],
input[type="time"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  background: #fff !important;
  color: #111 !important;
  font-size: 16px !important;
  padding: 10px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;

  /* За да не се zoom-ва на iOS */
  font-size: 16px !important;
  line-height: 1.4 !important;
}

/* Плейсхолдър стил */
input[type="date"]::placeholder,
input[type="time"]::placeholder {
  color: #999;
}

/* iOS hack за скриване на иконата вътре */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
  filter: invert(0.4);
  margin-right: 5px;
}

/* Резултатите */
.bazi-wrap{
  width:100%;
  margin:30px auto 0;
  display:flex;
  flex-direction:column;
  gap:28px;
}

.bazi-card{
  border:1px solid #e3e3e3;
  border-radius:16px;
  padding:24px;
  background:#fff;
  color:#000;
  box-shadow:0 4px 16px rgba(0,0,0,0.05);
  box-sizing:border-box;
}

#bazi-output > div.bazi-wrap > div:nth-child(3) {
    display:none;
}

.bazi-h{
  margin:0 0 18px 0;
  font-size:20px;
  font-weight:600;
  color:#222;
}

.bazi-table{
  width:100%;
  border-collapse:collapse;
  table-layout:auto;
}

.bazi-table th,
.bazi-table td{
  padding:12px 10px;
  border-bottom:1px solid #f0f0f0;
  text-align:left;
  vertical-align:top;
}

.bazi-table th{
  font-weight:700;
  background:#fafafa;
}

.bazi-kv{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-top:8px;
  font-size:15px;
  justify-content: center;
}

.bazi-kv div{
  display:flex;
  align-items:center;
  gap:6px;
}

.bazi-pillars-table td small{
  opacity:.8;
  display:block;
  margin-top:4px;
}

.bazi-emoji{width:22px;display:inline-block;text-align:center}
.muted{opacity:.7}

/* Мобилен */
@media (max-width:768px){
  
  .bazi-widget h3{font-size:20px}
  .bazi-widget input{font-size:16px}
  .bazi-card{padding:20px}
  .bazi-h{font-size:18px}
  .bazi-table th,.bazi-table td{padding:10px 6px;font-size:14px}
}