
:root{
  --ydp-blue:#2287ef;
  --ydp-blue-dark:#1f75cf;
  --ydp-blue-soft:#eaf5ff;
  --ydp-border:#cfe3f8;
  --ydp-green:#62d477;
  --ydp-green-dark:#1d7f3a;
  --ydp-text:#1d2433;
  --ydp-muted:#6b7280;
}

.ydp-wrap{
  max-width:900px;
  margin:34px auto;
  padding:28px;
  background:#fff;
  border:1px solid #dbe8f6;
  border-radius:18px;
  box-shadow:0 16px 36px rgba(34,135,239,.10);
  font-family:"Public Sans",Arial,sans-serif;
  color:var(--ydp-text);
}

.ydp-head h2{
  margin:0 0 8px;
  color:var(--ydp-blue);
  font-weight:800;
  font-size:28px;
  line-height:1.15;
}

.ydp-head p{
  margin:0 0 24px;
  color:var(--ydp-muted);
}

.ydp-label{
  display:block;
  margin:0 0 8px;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}

.ydp-city,
.ydp-fields input[type="text"],
.ydp-fields input[type="email"]{
  width:100%;
  box-sizing:border-box;
  padding:15px 16px;
  border:1px solid #cfd9e6;
  border-radius:12px;
  background:#fff;
  font-size:18px;
  line-height:1.2;
  color:var(--ydp-text);
  margin-bottom:24px;
  min-height:54px;
}

.ydp-city:focus,
.ydp-fields input:focus{
  outline:3px solid rgba(34,135,239,.18);
  border-color:var(--ydp-blue);
}

.ydp-calendar-panel{
  margin:24px 0 28px;
  padding:24px;
  border:1px solid var(--ydp-border);
  background:linear-gradient(180deg,#f7fbff,#fff);
  border-radius:18px;
}

.ydp-calendars{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:26px;
  width:100%;
}

.ydp-month{
  min-width:0;
}

.ydp-month-title{
  text-align:center;
  color:var(--ydp-blue);
  font-size:23px;
  font-weight:900;
  margin:0 0 18px;
}

.ydp-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
  width:100%;
  align-items:center;
}

.ydp-dayname{
  text-align:center;
  font-weight:800;
  color:#303b49;
  font-size:14px;
  padding:0 0 8px;
}

.ydp-empty,
.ydp-day{
  width:100%;
  aspect-ratio:1/1;
  min-width:0;
}

.ydp-day{
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:center;
  align-self:center;
  width:38px;
  height:38px;
  max-width:100%;
  aspect-ratio:auto;
  border-radius:999px;
  background:transparent;
  border:0;
  cursor:pointer;
  font-size:16px;
  font-weight:800;
  color:#111827;
  transition:transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color:transparent;
  appearance:none;
}

.ydp-day:hover{
  background:#dceeff;
}

.ydp-day:focus{
  outline:none;
  background:transparent;
}

.ydp-day:focus-visible{
  outline:3px solid rgba(34,135,239,.35);
  outline-offset:2px;
}

.ydp-day:active{
  transform:scale(.94);
  background:transparent;
}

.ydp-day.ydp-selected:focus,
.ydp-day.ydp-selected:active{
  background:var(--ydp-green);
}

.ydp-day.ydp-selected{
  background:var(--ydp-green);
  color:#fff;
  box-shadow:0 5px 12px rgba(29,127,58,.22);
}

.ydp-day.ydp-disabled{
  opacity:.28;
  cursor:not-allowed;
  pointer-events:none;
}

.ydp-selected-summary{
  margin-top:18px;
  padding:12px 14px;
  border-radius:12px;
  background:#eef8ff;
  color:#203040;
  font-weight:700;
}

.ydp-fields{
  border-top:1px solid #e4edf6;
  padding-top:26px;
}

.ydp-check{
  display:flex!important;
  align-items:center;
  gap:10px;
  margin:2px 0 16px;
  font-weight:600;
  line-height:1.35;
  cursor:pointer;
}

.ydp-check input{
  width:22px;
  height:22px;
  flex:0 0 22px;
}

#ydp-email:disabled{
  opacity:.55;
  background:#f3f4f6;
}

.ydp-submit{
  width:100%;
  border:0;
  border-radius:12px;
  padding:18px 22px;
  background:linear-gradient(135deg,var(--ydp-blue),#3aa0f5);
  color:#fff;
  font-size:18px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(34,135,239,.22);
}

.ydp-submit:hover{
  background:linear-gradient(135deg,var(--ydp-blue-dark),var(--ydp-blue));
}

.ydp-submit:disabled{
  opacity:.65;
  cursor:wait;
}

.ydp-note{
  margin:16px 0 0;
  color:var(--ydp-muted);
  font-size:14px;
}

.ydp-message{
  margin-top:16px;
  font-weight:800;
}

.ydp-message.success{
  color:#167d35;
}

.ydp-message.error{
  color:#b42318;
}

@media(max-width:780px){
  .ydp-wrap{
    margin:20px auto;
    padding:18px;
    border-radius:16px;
  }

  .ydp-calendar-panel{
    padding:16px;
  }

  .ydp-calendars{
    grid-template-columns:1fr;
    gap:28px;
  }

  .ydp-grid{
    gap:5px;
  }

  .ydp-day{
    width:31px;
    height:31px;
    font-size:14px;
  }

  .ydp-day.ydp-selected{
    box-shadow:0 3px 8px rgba(29,127,58,.18);
  }

  .ydp-head h2{
    font-size:24px;
  }
}
