/* 预约挂号页面样式 */

.yygh-section {
  padding-bottom: clamp(80px, 3vw, 200px);
}

/* 页面标题 */
.yygh-page-title {
  text-align: center;
  font-family: var(--font-decorative);
  font-size: 36px;
  line-height: 60px;
  color: #244840;
  margin-bottom: clamp(30px, 3vw, 62px);
  position: relative;
  background: url(../image/ksdh-title-bg.png) no-repeat center center;
  background-size: auto 100%;
}

/* 表单容器 - 带装饰性边框 */
.yygh-form-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(40px, 4vw, 80px) 0 clamp(20px, 5vw, 40px);
  background: url("../image/yygh-form.png") no-repeat center / 100% 100%;
}

.yygh-form {
  margin: 0 110px;
}

/* 表单行 */
.yygh-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.yygh-label {
  width: 80px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  padding-right: 24px;
}

.yygh-field {
  flex: 1;
}

/* 输入框 */
.yygh-input,
.yygh-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e7d4c7;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.yygh-input::placeholder {
  color: #bcbcbc;
}

.yygh-input:focus,
.yygh-select:focus {
  border-color: #966041;
}

/* 下拉箭头 */
.yygh-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Radio 单选 */
.yygh-radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 48px;
}

.yygh-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.yygh-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  background-color: #fff;
  display: inline-grid;
  place-content: center;
  transition: border-color 0.2s;
  margin: 0;
}

.yygh-radio input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: #007a5d;
}

.yygh-radio input[type="radio"]:checked {
  border-color: #007a5d;
}

.yygh-radio input[type="radio"]:checked::before {
  transform: scale(1);
}

.yygh-radio input[type="radio"]:hover:not(:checked) {
  border-color: #007a5d;
}

/* 提交按钮 */
.yygh-form-submit {
  text-align: center;
}

.yygh-submit-btn {
  display: inline-block;
  min-width: 180px;
  height: 56px;
  padding: 0 40px;
  border: none;
  font-size: 24px;
  color: #fff;
  background-image: url("../image/book-now.png");
  background-size: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}

.yygh-submit-btn:hover {
  opacity: 0.9;
}

.yygh-submit-btn:active {
  transform: translateY(0);
}

/* 分隔线 - 虚线 */
.yygh-divider {
  margin: clamp(24px, 3vw, 40px) 16px;
  height: 12px;
  background-image: url("../image/book-border.png");
  background-size: 100%;
  background-repeat: no-repeat;
}

/* 流程说明 */
.yygh-process {
  margin: 0 40px;
}

.yygh-process-tabs {
  display: flex;
  gap: 50px;
  padding-bottom: 16px;
  border-bottom: 1px solid #c39576;
  margin-bottom: 24px;
}

.yygh-process-tab {
  font-size: 16px;
  color: #828282;
  cursor: pointer;
  transition: color 0.2s;
  height: 52px;
  line-height: 52px;
  padding: 0 20px;
  text-align: center;
}

.yygh-process-tab.active {
  color: #244840;
  background: url("../image/ksdh-title-bg.png") no-repeat center center;
  background-size: 100% 100%;
}

.yygh-process-content {
  line-height: 2;
}

.yygh-process-content p {
  font-size: 14px;
  line-height: 28px;
  color: var(--text-primary);
  margin: 0;
}

/* 响应式 */
@media (max-width: 1024px) {
  .yygh-form {
    margin: 0 40px;
  }

  .yygh-input,
  .yygh-select,
  .yygh-radio-group {
    height: 44px;
  }
}

@media (max-width: 768px) {
  .yygh-form-container {
    padding: 50px 0;
    background-image: url("../image/yygh-mobile.png");
  }

  .yygh-form,
  .yygh-process {
    margin: 0 25px;
  }

  .yygh-form-row {
    margin-bottom: 12px;
  }

  .yygh-label {
    width: 70px;
    padding-right: 12px;
  }
  .yygh-field {
    width: 100%;
  }

  .yygh-input,
  .yygh-select,
  .yygh-radio-group {
    height: 40px;
  }

  .yygh-submit-btn {
    height: 48px;
    font-size: 18px;
    min-width: 150px;
    padding: 0 30px;
    background-size: 100% 100%;
  }

  .yygh-process-tabs {
    gap: 20px;
  }

  .yygh-process-tab {
    font-size: 14px;
    padding: 0 15px;
    height: 44px;
    line-height: 44px;
  }
}

@media (max-width: 576px) {
  .yygh-form,
  .yygh-process {
    margin: 0 16px;
  }

  .yygh-form-row {
    margin-bottom: 8px;
  }

  .yygh-input,
  .yygh-select,
  .yygh-radio-group {
    height: 38px;
  }

  .yygh-radio-group {
    gap: 16px;
  }

  .yygh-process-tabs {
    gap: 10px;
  }

  .yygh-process-tab {
    font-size: 13px;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
  }
}

/* 自定义日期选择器 */
.yygh-datepicker-wrapper {
  position: relative;
  width: 100%;
}

div.yygh-select {
  display: flex;
  align-items: center;
  user-select: none;
}

.yygh-datepicker-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid #e7d4c7;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(150, 96, 65, 0.15);
  margin-top: 8px;
  padding: 16px;
  z-index: 99;
  box-sizing: border-box;
}

.yygh-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e7d4c7;
}

.yygh-datepicker-title {
  font-size: 15px;
  font-weight: bold;
  color: #244840;
}

.yygh-datepicker-btn {
  background: none;
  border: none;
  color: #966041;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.yygh-datepicker-btn:hover {
  opacity: 0.7;
}

.yygh-datepicker-btn:disabled {
  color: #dcdcdc;
  cursor: not-allowed;
}

.yygh-datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  color: #828282;
  font-size: 12px;
  margin-bottom: 8px;
}

.yygh-datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.yygh-datepicker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}

.yygh-datepicker-day:hover:not(.disabled):not(.selected) {
  background-color: #f7ede8;
  color: #966041;
}

.yygh-datepicker-day.selected {
  background-color: #244840;
  color: #fff;
  font-weight: bold;
}

.yygh-datepicker-day.disabled {
  color: #dcdcdc;
  cursor: not-allowed;
  background: transparent;
}

.yygh-datepicker-day.empty {
  cursor: default;
}
