/* 预约咨询页面 - 按设计图 1:1 实现，全部使用 px */

.request-appointment-page {
  background-color: #ffffff;
  min-height: 100%;
  padding-bottom: 65px;
}

.request-appointment-page .ra-banner {
  background-color: #e8e6e6;
  height: 196px;
  padding: 32px 0 40px;
}

.request-appointment-page .ra-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.request-appointment-page .ra-title {
  color: #2a2a2a;
  font-size: 48px;
  font-weight: 700;
  line-height: 64px;
  font-family: Open Sans, Lato, sans-serif;
  margin-bottom: 24px;
}

.request-appointment-page .ra-steps {
  display: flex;
  align-items: center;
  gap: 16px;
}

.request-appointment-page .ra-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-appointment-page .ra-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 22px;
  font-family: Lato, sans-serif;
}

.request-appointment-page .ra-step-num.active {
  background-color: #6f0b65;
  color: #ffffff;
}

.request-appointment-page .ra-step-num.inactive {
  background-color: #e8e6e6;
  border: 1px solid #949494;
  color: #949494;
}

.request-appointment-page .ra-step-text {
  font-size: 18px;
  line-height: 22px;
  font-family: Lato, sans-serif;
}

.request-appointment-page .ra-step-text.active {
  color: #2a2a2a;
}

.request-appointment-page .ra-step-text.inactive {
  color: #949494;
}

.request-appointment-page .ra-step-line {
  width: 80px;
  height: 1px;
  background-color: #949494;
}

.request-appointment-page .ra-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.request-appointment-page .ra-section {
  margin-bottom: 32px;
}

.request-appointment-page .ra-section-title {
  font-size: 24px;
  line-height: 24px;
  color: #2a2a2a;
  font-family: Lato, sans-serif;
  margin-bottom: 8px;
}

.request-appointment-page .ra-section-desc {
  font-size: 16px;
  line-height: 24px;
  color: #2a2a2a;
  font-weight: 300;
  font-family: Lato, sans-serif;
}

.request-appointment-page .ra-field-label {
  font-size: 16px;
  line-height: 24px;
  color: #2a2a2a;
  font-family: Lato, sans-serif;
  margin-bottom: 8px;
}

.request-appointment-page .ra-field-label .required {
  color: #df3131;
}

.request-appointment-page .ra-select-wrap {
  position: relative;
  background-color: #f8f7f7;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.request-appointment-page .ra-select-wrap select {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 18px;
  color: #2a2a2a;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.request-appointment-page .ra-select-wrap .ra-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 8px;
}

.request-appointment-page .ra-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #e8e6e6;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(39, 47, 59, 0.1);
  z-index: 100;
  display: none;
}

.request-appointment-page .ra-dropdown.open {
  display: block;
}

.request-appointment-page .ra-dropdown-item {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #2a2a2a;
  cursor: pointer;
}

.request-appointment-page .ra-dropdown-item:hover {
  background-color: #f8f7f7;
}

.request-appointment-page .ra-dropdown-item.selected {
  color: #6f0b65;
  font-weight: 500;
}

.request-appointment-page .ra-divider {
  height: 1px;
  background-color: #e8e6e6;
  margin: 32px 0 47px;
}

.request-appointment-page .ra-info-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: #6f0b65;
  font-family: Open Sans, sans-serif;
  margin-bottom: 24px;
}

.request-appointment-page .ra-form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 14px;
}

.request-appointment-page .ra-form-row .ra-form-group {
  flex: 1;
}

.request-appointment-page .ra-form-group {
  margin-bottom: 14px;
}

.request-appointment-page .ra-form-group.full-width {
  margin-bottom: 32px;
}

.request-appointment-page .ra-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background-color: #f8f7f7;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #2a2a2a;
  box-sizing: border-box;
}

.request-appointment-page .ra-input:focus {
  outline: none;
  border-color: #6f0b65;
}

.request-appointment-page .ra-input.error {
  border-color: #df3131;
}

.request-appointment-page .ra-input::placeholder {
  color: #999;
}

.request-appointment-page .ra-input.error::placeholder {
  color: #df3131;
}

.request-appointment-page .ra-radio-row {
  display: flex;
  gap: 48px;
  align-items: center;
}

.request-appointment-page .ra-radio-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.request-appointment-page .ra-radio-item input {
  display: none;
}

.request-appointment-page .ra-radio-icon-wrap {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.request-appointment-page .ra-radio-icon-wrap img {
  width: 16px;
  height: 16px;
  position: absolute;
  left: 0;
  top: 0;
}

.request-appointment-page .ra-radio-item input:checked ~ .ra-radio-icon-wrap .ra-radio-fill {
  display: block;
}

.request-appointment-page .ra-radio-item input:checked ~ .ra-radio-icon-wrap .ra-radio-line {
  display: none;
}

.request-appointment-page .ra-radio-item input:not(:checked) ~ .ra-radio-icon-wrap .ra-radio-fill {
  display: none;
}

.request-appointment-page .ra-radio-item input:not(:checked) ~ .ra-radio-icon-wrap .ra-radio-line {
  display: block;
}

.request-appointment-page .ra-radio-item > span:last-of-type {
  font-size: 16px;
  color: #2a2a2a;
  font-weight: 300;
}

.request-appointment-page .ra-radio-item input:checked ~ span:last-of-type {
  font-weight: 400;
}

.request-appointment-page .ra-birthday-row {
  display: flex;
  gap: 16px;
}

.request-appointment-page .ra-birthday-row select {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  background-color: #f8f7f7;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #2a2a2a;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url('../images/contact/arrow-down-s-line.svg');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px 24px;
  padding-right: 44px;
}

.request-appointment-page .ra-phone-wrap {
  display: flex;
  height: 44px;
}

.request-appointment-page .ra-phone-prefix-wrap {
  position: relative;
}

.request-appointment-page .ra-phone-prefix {
  width: 120px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background-color: #f8f7f7;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
}

.request-appointment-page .ra-phone-prefix .ra-earth {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.request-appointment-page .ra-phone-prefix .ra-code {
  font-size: 16px;
  color: #2a2a2a;
  flex: 1;
}

.request-appointment-page .ra-phone-prefix .ra-arrow {
  width: 16px;
  height: 16px;
}

.request-appointment-page .ra-phone-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  background-color: #f8f7f7;
  border: 1px solid #ddd;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  color: #2a2a2a;
  box-sizing: border-box;
}

.request-appointment-page .ra-phone-input:focus {
  outline: none;
  border-color: #6f0b65;
}

.request-appointment-page .ra-btn-next {
  display: inline-block;
  height: 48px;
  padding: 0 33px;
  background-color: #6f0b65;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 48px;
  font-family: Lato, sans-serif;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  margin-top: 48px;
  margin-bottom: 65px;
}

.request-appointment-page .ra-btn-next:hover {
  background-color: #5a0952;
}

.request-appointment-page .ra-btn-back {
  display: inline-block;
  height: 48px;
  padding: 0 24px;
  background-color: transparent;
  color: #6f0b65;
  font-size: 18px;
  font-weight: 500;
  line-height: 48px;
  font-family: Lato, sans-serif;
  border: 1px solid #6f0b65;
  border-radius: 4px;
  cursor: pointer;
  float: left;
  margin-top: 48px;
  margin-bottom: 65px;
}

.request-appointment-page .ra-btn-back:hover {
  background-color: #f8f7f7;
}

.request-appointment-page .ra-form-actions {
  clear: both;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.request-appointment-page .ra-form-actions.ra-step1-actions {
  justify-content: flex-end;
}

/* textarea */
.request-appointment-page .ra-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  background-color: #f8f7f7;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #2a2a2a;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
}

.request-appointment-page .ra-textarea:focus {
  outline: none;
  border-color: #6f0b65;
}

/* 上传区 */
.request-appointment-page .ra-upload-wrap {
  margin-top: 8px;
}

.request-appointment-page .ra-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background-color: #f8f7f7;
  border: 1px dashed #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  color: #2a2a2a;
}

.request-appointment-page .ra-upload-btn:hover {
  border-color: #6f0b65;
  color: #6f0b65;
}

.request-appointment-page .ra-upload-btn input {
  display: none;
}

.request-appointment-page .ra-upload-icon {
  width: 20px;
  height: 20px;
}

.request-appointment-page .ra-file-list {
  margin-top: 12px;
}

.request-appointment-page .ra-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: #2a2a2a;
}

.request-appointment-page .ra-file-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Confirmation 预览 */
.request-appointment-page .ra-confirm-section {
  margin-bottom: 32px;
}

.request-appointment-page .ra-confirm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.request-appointment-page .ra-confirm-header span {
  font-size: 20px;
  font-weight: 600;
  color: #2a2a2a;
}

.request-appointment-page .ra-edit-link {
  font-size: 16px;
  color: #6f0b65;
  text-decoration: none;
}

.request-appointment-page .ra-edit-link:hover {
  text-decoration: underline;
}

.request-appointment-page .ra-confirm-divider {
  height: 1px;
  background-color: #e8e6e6;
  margin-bottom: 16px;
}

.request-appointment-page .ra-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
}

.request-appointment-page .ra-confirm-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.request-appointment-page .ra-confirm-key {
  font-size: 14px;
  color: #949494;
}

.request-appointment-page .ra-confirm-val {
  font-size: 16px;
  color: #2a2a2a;
}

.request-appointment-page .ra-confirm-medical-text {
  font-size: 16px;
  line-height: 24px;
  color: #2a2a2a;
  margin-bottom: 12px;
}

.request-appointment-page .ra-confirm-medical-text:last-of-type {
  margin-bottom: 0;
}

.request-appointment-page .ra-confirm-files {
  margin-top: 16px;
}

.request-appointment-page .ra-confirm-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
}

.request-appointment-page .ra-confirm-file-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.request-appointment-page .ra-confirm-file-name {
  color: #2a2a2a;
}

.request-appointment-page .ra-confirm-file-size {
  color: #949494;
  font-size: 12px;
}

.request-appointment-page .ra-confirm-no-files {
  font-size: 14px;
  color: #949494;
  margin: 0;
}

/* 首选医生、是否为本人 - 使用下拉样式 */
.request-appointment-page .ra-doctor-select {
  margin-top: 8px;
}

.request-appointment-page .ra-patient-self {
  margin-top: 8px;
  margin-bottom: 32px;
}

/* 国家代码下拉 */
.request-appointment-page .ra-country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 280px;
  max-height: 300px;
  overflow: hidden;
  display: none;
}

.request-appointment-page .ra-country-dropdown.open {
  display: block;
}

.request-appointment-page .ra-country-search {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.request-appointment-page .ra-country-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.request-appointment-page .ra-country-list {
  max-height: 240px;
  overflow-y: auto;
}

.request-appointment-page .ra-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}

.request-appointment-page .ra-country-item:hover {
  background: #f9f9f9;
}

.request-appointment-page .ra-country-item .ra-flag {
  font-size: 20px;
}

.request-appointment-page .ra-country-item .ra-name {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.request-appointment-page .ra-country-item .ra-code {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* 未登录时显示的登录提示区域 */
.request-appointment-page .ra-login-required {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.request-appointment-page .ra-login-required-inner {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 40px 32px;
  display: inline-block;
}

.request-appointment-page .ra-login-required-text {
  font-size: 18px;
  color: #333;
  margin: 0 0 24px 0;
}

/* 响应式：小屏时两列改为单列 */
@media (max-width: 768px) {
  .request-appointment-page .ra-form-row {
    flex-direction: column;
    gap: 0;
  }
  .request-appointment-page .ra-title {
    font-size: 36px;
    line-height: 48px;
  }
  .request-appointment-page .ra-steps {
    flex-wrap: wrap;
  }
  .request-appointment-page .ra-btn-next {
    width: 100%;
    text-align: center;
    float: none;
  }
}
