@charset "UTF-8";
.AppointmentContainer {
  max-width: 445px;
  margin: 0 auto;
  padding: 8px 18px 0 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #f7fbfc);
  border-radius: 24px;
  border: 1px solid rgba(2, 132, 137, 0.12);
  box-shadow: 0 28px 80px rgba(6, 32, 36, 0.2);
  /* Десктоп (>1024px) */
}
.AppointmentContainer {
  /* Планшеты (768px–1024px) */
}
.AppointmentContainer {
  /* Мобильные (<768px) */
}
@media only screen and (max-width: 767px) {
  .AppointmentContainer {
    max-width: 100%;
  }
}
@media only screen and (max-width: 390px) {
  .AppointmentContainer {
    max-width: 100%;
  }
}
@media only screen and (max-height: 600px) {
  .AppointmentContainer {
    padding: 6px 10px 0 10px;
  }
}

.AppointmentMain {
  display: flex;
  flex-direction: column;
}

.AppointmentResult {
  display: none;
}

.AppointmentContainer[data-appointment-state=success],
.AppointmentContainer[data-appointment-state=error] {
  padding: 18px;
  max-width: 420px;
}

.AppointmentContainer[data-appointment-state=success] .AppointmentMain,
.AppointmentContainer[data-appointment-state=error] .AppointmentMain {
  display: none;
}

.AppointmentContainer[data-appointment-state=success] .AppointmentResult,
.AppointmentContainer[data-appointment-state=error] .AppointmentResult {
  display: block;
}

.AppointmentResult [data-appointment-result] {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}

.AppointmentResult [data-appointment-result=success] {
  color: #0f766e;
}

.AppointmentResult [data-appointment-result=error] {
  color: #b91c1c;
}

.AppointmentResult h3,
.AppointmentResult p {
  margin: 0;
}

.AppointmentResult h3 {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
}

.AppointmentResult p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

.AppointmentResult [data-appointment-result=error] p:first-of-type {
  color: #7f1d1d;
}

.AppointmentContainerSuccess {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #f7fbfc);
  border-radius: 24px;
  border: 1px solid rgba(2, 132, 137, 0.12);
  box-shadow: 0 28px 80px rgba(6, 32, 36, 0.2);
}

.AppointmentTitle {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  margin-top: 0px;
  padding-top: 8px;
  /* Мобильные (<768px) */
}
@media only screen and (max-width: 767px) {
  .AppointmentTitle {
    font-size: 16px;
  }
}
@media only screen and (max-width: 390px) {
  .AppointmentTitle {
    font-size: 14px;
  }
}
@media only screen and (max-height: 600px) {
  .AppointmentTitle {
    gap: 6px;
    margin-bottom: 0px;
    padding-top: 0px;
  }
}

.AppointmentSubtitle {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 16px;
  /* Десктоп (>1024px) */
}
.AppointmentSubtitle {
  /* Планшеты (768px–1024px) */
}
.AppointmentSubtitle {
  /* Мобильные (<768px) */
}
@media only screen and (max-width: 767px) {
  .AppointmentSubtitle {
    font-size: 16px;
    margin-bottom: 5px;
  }
}
@media only screen and (max-width: 390px) {
  .AppointmentSubtitle {
    font-size: 14px;
  }
}
@media only screen and (max-height: 600px) {
  .AppointmentSubtitle {
    margin-bottom: 5px;
  }
}

.AppointmentClinicName {
  font-weight: 600;
  color: #0d9488;
}

.AppointmentDescription {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 24px;
  /* Десктоп (>1024px) */
}
.AppointmentDescription {
  /* Планшеты (768px–1024px) */
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .AppointmentDescription {
    font-size: 14px;
  }
}
.AppointmentDescription {
  /* Мобильные (<768px) */
}
@media only screen and (max-width: 767px) {
  .AppointmentDescription {
    font-size: 14px;
  }
}
@media only screen and (max-width: 390px) {
  .AppointmentDescription {
    font-size: 12px;
  }
}
@media only screen and (max-height: 600px) {
  .AppointmentDescription {
    margin-bottom: 6px;
  }
}

.AppointmentForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media only screen and (max-height: 600px) {
  .AppointmentForm {
    gap: 6px;
  }
}

.AppointmentInputGroup {
  display: flex;
  flex-direction: column;
}
@media only screen and (max-height: 380px) {
  .AppointmentInputGroup {
    flex-direction: row;
    gap: 10px;
  }
}

.AppointmentLabel {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  white-space: nowrap;
  /* Десктоп (>1024px) */
}
.AppointmentLabel {
  /* Планшеты (768px–1024px) */
}
.AppointmentLabel {
  /* Мобильные (<768px) */
}
@media only screen and (max-width: 767px) {
  .AppointmentLabel {
    font-size: 14px;
  }
}
@media only screen and (max-width: 390px) {
  .AppointmentLabel {
    font-size: 12px;
  }
}

.AppointmentInput {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  transition: all 0.2s ease;
}
.AppointmentInput:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}
.AppointmentInput:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}
@media only screen and (max-height: 600px) {
  .AppointmentInput {
    padding: 3px 4px;
  }
}

.AppointmentInputError {
  border-color: #ef4444;
}

.AppointmentError {
  color: #ef4444;
  margin-top: 4px;
  text-align: left;
}

.AppointmentErrorBlock {
  height: 14px;
  color: red;
  font-size: 12px;
}
@media only screen and (max-width: 600px) {
  .AppointmentErrorBlock {
    font-size: 11px;
  }
}
@media only screen and (max-width: 390px) {
  .AppointmentErrorBlock {
    font-size: 10px;
    height: 25px;
  }
}

.AppointmentCheckboxGroup {
  display: flex;
  align-items: flex-start;
}

.AppointmentCheckbox {
  width: 42px;
  min-width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  appearance: none; /* Отключаем нативный стиль */
  border: 2px solid #d1d5db; /* Базовая обводка */
  border-radius: 4px;
  position: relative;
  background-color: #ffffff;
}
.AppointmentCheckbox:checked {
  background-color: #0d9488;
}
.AppointmentCheckbox:after {
  content: "";
  position: absolute;
  display: none;
}
.AppointmentCheckbox:checked:after {
  display: block;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  left: 5px;
  top: 1px;
}
.AppointmentCheckbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.AppointmentCheckboxLabel {
  font-size: 14px;
  color: #4b5563;
  margin-left: 8px;
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: left;
  /* Десктоп (>1024px) */
}
@media only screen and (min-width: 1025px) {
  .AppointmentCheckboxLabel {
    font-size: 12px;
  }
}
.AppointmentCheckboxLabel {
  /* Планшеты (768px–1024px) */
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .AppointmentCheckboxLabel {
    font-size: 12px;
  }
}
.AppointmentCheckboxLabel {
  /* Мобильные (<768px) */
}
@media only screen and (max-width: 767px) {
  .AppointmentCheckboxLabel {
    font-size: 12px;
  }
}
@media only screen and (max-width: 390px) {
  .AppointmentCheckboxLabel {
    font-size: 11px;
  }
}
@media only screen and (max-height: 600px) {
  .AppointmentCheckboxLabel {
    margin-bottom: 6px;
    font-size: 10px;
  }
}

.AppointmentCheckboxError {
  border: 1px solid #ef4444;
  border-radius: 4px;
}

.AppointmentLink {
  color: #0d9488;
  text-decoration: none;
}
.AppointmentLink:hover {
  text-decoration: underline;
}

.AppointmentButton {
  width: 100%;
  padding: 12px;
  background: #0d9488;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}
.AppointmentButton:hover:not(:disabled) {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.AppointmentButton:disabled {
  background: #6b7280;
  cursor: not-allowed;
  opacity: 0.7;
}
.AppointmentButton {
  /* Десктоп (>1024px) */
}
.AppointmentButton {
  /* Планшеты (768px–1024px) */
}
.AppointmentButton {
  /* Мобильные (<768px) */
}
@media only screen and (max-width: 767px) {
  .AppointmentButton {
    font-size: 14px;
  }
}
@media only screen and (max-width: 390px) {
  .AppointmentButton {
    font-size: 12px;
  }
}
@media only screen and (max-height: 600px) {
  .AppointmentButton {
    margin-bottom: 6px;
  }
}

.AppointmentButtonLoading {
  opacity: 0.7;
  cursor: wait;
}

.AppointmentButtonContent {
  display: flex;
  align-items: center;
  justify-content: center;
}

.AppointmentSpinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

.AppointmentSuccess {
  font-size: 14px;
  color: #059669;
  text-align: center;
  margin-top: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.AppointmentPolicy {
  margin-left: 2px;
  font-size: 11px;
  color: #196062;
  font-weight: bold;
}
@media only screen and (max-width: 390px) {
  .AppointmentPolicy {
    font-size: 9px;
  }
}

[data-appointment-result] {
  margin-top: 12px;
}

[data-appointment-result=success] p {
  font-size: 14px;
  color: #059669;
  text-align: center;
  margin-top: 16px;
}

[data-appointment-result=error] p {
  font-size: 14px;
  color: #ef4444;
  text-align: center;
  margin-top: 16px;
}