/* ==========================================
   Victorian Points Test Calculator
   ========================================== */
.vpt-modal {
  position: relative;
  width: calc(100% - 30px);
  max-width: 900px;
  margin: 35px auto;
  padding: 35px 45px;
  background: #fff;
  box-sizing: border-box;
  line-height: 1.5;
}

.vpt-modal .vpt-title {
  color: #19176E;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 35px 5px 0;
  padding: 0;
}

.vpt-subtitle {
  color: #666;
  font-size: 14px;
  margin: 0 0 12px;
  padding: 0;
}

.vpt-intro {
  font-size: 15px;
  margin: 0 0 25px;
  padding: 0;
}

/* Calculator grid */
.vpt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin-bottom: 22px;
}

.vpt-field {
  position: relative;
  min-width: 0;
}

.vpt-field label {
  display: block;
  margin-bottom: 7px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.vpt-modal .vpt-select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 45px;
  height: auto;
  padding: 10px 72px 10px 12px;
  border: 1px solid #cbd0d9;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.vpt-modal .vpt-select:focus {
  border-color: #19176E;
  outline: 2px solid rgba(25, 23, 110, 0.12);
  outline-offset: 1px;
}

.vpt-field-points {
  position: absolute;
  right: 24px;
  bottom: 13px;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.vpt-field-points.selected {
  color: #19176E;
}

/* Score panel */
.vpt-score-panel {
  padding: 22px 25px;
  background: #f7f8fc;
  border: 1px solid #e1e4ef;
  border-radius: 6px;
  margin-bottom: 22px;
}

.vpt-score-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.vpt-score-label {
  color: #5c6270;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.vpt-score-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 5px;
}

#vpt-total {
  color: #19176E;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.vpt-score-max {
  color: #777;
  font-size: 15px;
}

.vpt-modal .vpt-reset {
  padding: 8px 18px;
  border: 1px solid #bfc3d0;
  border-radius: 4px;
  background: #fff;
  color: #19176E;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.vpt-modal .vpt-reset:hover {
  background: #eeeff8;
}

.vpt-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #e4e6ef;
  border-radius: 10px;
}

#vpt-progress-bar {
  width: 0;
  height: 100%;
  background: #4051b0;
  border-radius: 10px;
  transition: width 0.2s ease;
}

.vpt-completion {
  margin-top: 10px;
  color: #737780;
  font-size: 13px;
}

.vpt-completion.complete {
  color: #148a83;
  font-weight: 600;
}

/* Information and source */
.vpt-notes {
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  background: #fafafa;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
}

.vpt-notes strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.vpt-modal .vpt-notes ul {
  margin: 5px 0 0 18px;
  padding: 0;
}

.vpt-modal .vpt-notes li {
  margin-bottom: 5px;
}

.vpt-modal .vpt-notes li:last-child {
  margin-bottom: 0;
}

.vpt-footer {
  margin-top: 20px;
  font-size: 14px;
}

.vpt-footer a {
  color: #19176E;
}

/* Date of Birth section */
.vpt-dob-row {
  padding: 10px 20px;
  margin-bottom: 10px;
  border: 1px solid #e1e4ef;
  border-radius: 6px;
  background: #fafbfe;
}

.vpt-dob-row-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.vpt-dob-row-top label {
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.vpt-modal #vpt-dob {
  width: 190px;
  height: 38px;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #cbd0d9;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  color: #333;
}

#vpt-age-display {
  color: #19176E;
  font-size: 14px;
}

.vpt-dob-hint {
  display: block;
  color: #777;
  font-size: 12px;
}

@media (max-width: 690px) {
  .vpt-dob-row {
    padding: 15px;
  }

  .vpt-dob-row-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .vpt-modal #vpt-dob {
    width: 100%;
    max-width: 280px;
  }
}

/* Mobile */
@media (max-width: 690px) {

  .vpt-modal {
    margin: 15px auto;
    padding: 25px 20px;
  }

  .vpt-modal .vpt-title {
    font-size: 20px;
  }

  .vpt-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vpt-score-panel {
    padding: 18px;
  }

  #vpt-total {
    font-size: 30px;
  }
}
