.contact-phone-line1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
}

.problems {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  padding: 32px 0;
  margin-bottom: 50px;
}

.problems-inner {
  background: #f3f6fd;
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.problems-left {
  flex: 1.4;
}

.problems-title {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 10px;
}

.problems-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: #717b8f;
  max-width: 360px;
  margin-bottom: 18px;
}

.problems-list {
  list-style: none;
  margin-bottom: 18px;
}

.problems-list li {
  display: flex;
  align-items: flex-start;
  font-size: 18px;
  line-height: 1.5;
  color: #313749;
  margin-bottom: 6px;
}

.problems-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

.problems-icon svg {
  width: 100%;
  height: 100%;
}

.problems-icon svg circle {
  fill: #6ba94b;
  filter: drop-shadow(0 0 0 4px rgba(107, 169, 75, 0.16));
}

.problems-icon svg path {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problems-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.problems-tag {
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 0.1px solid #555f73;
  white-space: nowrap;
  color: #555f73;
}

.problems-note {
  font-size: 16px;
  color: #9aa3ba;
  margin-top: 4px;
}

.problems-right {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.contact-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 0 0 1px rgba(226, 232, 255, 0.8);
  width: 350px;
  margin-left: 100px;
}

.contact-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-title span {
  color: #6ba94b;
  font-weight: 700;
}

.contact-subtitle {
  font-size: 16px;
  color: #22262acc;
  margin-bottom: 14px;
}

.contact-main-btn {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: none;
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #6ba94b;
  cursor: pointer;
  margin-bottom: 10px;
  height: 50px;
}
.problems-tag:hover{
  background-color: transparent;
  color: #3fab3c;
  border: 0.1px solid #3fab3c;
}
.contact-main-btn:hover{
  background-color: transparent;
  color: #3fab3c;
  border: 2px solid #3fab3c;
}

.contact-phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px;
  border: 2px solid #f4f7fd;
  border-radius: 10px;
  height: 50px;
}

.contact-phone-number {
  font-weight: 600;
  margin-left: 8px;
  font-size: 14px;
}

.contact-phone-extra {
  color: #9aa3ba;
  margin-left: auto;
  padding-left: 10px;
  font-size: 14px;
}

.contact-field {
  margin-bottom: 10px;
}

.contact-field label {
  display: block;
  font-size: 11px;
  color: #7b8193;
  margin-bottom: 4px;
}

.contact-input {
  width: 100%;
  border-radius: 10px;
  border: none;
  padding: 9px 12px;
  font-size: 13px;
  background: #f5f7ff;
  box-shadow: inset 0 0 0 1px rgba(220, 228, 255, 0.9);
  outline: none;
}

.contact-input:focus {
  box-shadow: inset 0 0 0 1px rgba(107, 169, 75, 0.7), 0 0 0 2px rgba(107, 169, 75, 0.15);
}

.contact-submit {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: none;
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #6ba94b;
  cursor: pointer;
  margin-bottom: 10px;
  height: 50px;
}

.contact-submit:hover{
  border: 2px solid #3fab3c;
  background-color: transparent;
  color: #3fab3c;
}

.contact-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.contact-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(148, 163, 184, 0.7);
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.contact-checkbox svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.contact-checkbox.active {
  background: #6ba94b;
  border-color: #6ba94b;
}

.contact-checkbox.active svg {
  opacity: 1;
}

.contact-checkbox-text {
  font-size: 14px;
  color: #9aa3ba;
  line-height: 1.4;
}

.contact-checkbox-text a {
  text-decoration: none;
}

.contact-checkbox-text a:hover {
  text-decoration: underline;
}
.divider {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 14px 0;
}

.divider-line {
  height: 1px;
  background: #dfe7ff;
  flex: 1;
}

.divider-text {
  font-size: 12px;
  color: #b8c4ff;
  margin: 0 10px;
  white-space: nowrap;
}

.urgent-link {
  font-size: 14px;
  color: #6ba94b;
  text-decoration: underline;
  margin-top: 6px;
  cursor: pointer;
  display: inline-block;
}
/* #phone{
  width: 199%;
  margin-left: -77px;
  height: 50px;
}*/

label[for="phone"] {
    color: transparent;
}

@media (max-width: 900px) {
  .problems-inner {
    flex-direction: column;
    gap: 16px;
  }
  .problems-right {
    order: 2;
    justify-content: center;
    width: 100%;
  }
  .contact-card {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .urgent-link {
    font-size: 12px;
  }
  .page-wrapper {
    padding: 24px 12px;
  }

  .problems {
    /* max-width: 420px; */
    padding: 20px 12px;
    border-radius: 26px;
  }

  .problems-inner {
    padding: 20px 18px;
  }

  .problems-left {
    order: 1;
  }

  .problems-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  s .problems-subtitle {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .problems-list li {
    font-size: 12px;
  }

  .contact-card {
    padding: 16px;
    margin-left: 0;
  }
  .contact-title{
      font-size: 16px;
  }
  .problems-subtitle, .contact-main-btn, .contact-submit, .contact-checkbox-text{
      font-size: 14px;
  }
  contact-subtitle {
  font-size: 14px;
  }
  .contact-phone-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
    gap: 4px;
  }

  .contact-phone-row span.problems-icon {
    margin-right: 6px;
    margin-top: 0;
  }

  .contact-phone-number {
    display: inline-flex;
    align-items: center;
    margin-left: 0 !important;
    font-size: 14px;
  }

  .contact-phone-extra {
    margin-left: 0 !important;
    padding-left: 0 !important;
    font-size: 12px;
    display: block;
  }
  .problems-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .problems-tag {
    width: 100%;
    text-align: center;
  }

  .problems-tag a {
    display: block;
    width: 100%;
  }
  .contact-phone-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 10px 12px;
  }

  .contact-phone-line1 {
    justify-content: center;
  }

  .contact-phone-number {
    margin-left: 0 !important;
    font-size: 14px;
  }

  .contact-phone-extra {
    margin-left: 0 !important;
    padding-left: 0 !important;
    font-size: 12px;
  }
  #phone{
  width: 100%;
  margin-left: 0;
  height: 50px;
}
.contact-main-btn {
height: 50px;
}
}


.booking-container {
    max-width: 1200px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    font-family: 'Inter', -apple-system, sans-serif;
}
.booking-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    color: #1a1a1a;
}
.filters-row {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}
.filter-select {
    background: #f4f7f9;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    max-width: 380px;
}
.filter-label {
    color: #8a96a3;
    margin-right: 8px;
    font-size: 14px;
}
.filter-select select {
    background: transparent;
    border: none;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.btn-primary {
    background: #5cb85c;
    color: #ffffff;
    border: none;
    padding: 0 32px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #4ea84e;
}
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 40px;
    background-color: #F4F7FD;
    padding: 20px;
    border-radius: 20px;
    max-height: 215px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #5cb85c #F4F7FD;
}
.doctor-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    width: 100%;
    max-width: 310px;
    transition: border 0.2s ease;
}
.doctor-avatar {
    width: 48px;
    height: 48px;
    background-color: #F4F7FD;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}
.doctor-avatar picture, .doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.doctor-name {
    font-weight: 700;
    font-size: 15px;
    color: #333333;
}
.doctor-meta {
    font-size: 13px;
    color: #8a96a3;
    margin-top: 4px;
}
.star { 
    color: #ffc107; 
}
.js-rating { 
    color: black; 
}
.doctors-grid::-webkit-scrollbar { width: 6px; }
.doctors-grid::-webkit-scrollbar-track { background: #F4F7FD; border-radius: 20px; }
.doctors-grid::-webkit-scrollbar-thumb { background-color: #5cb85c; border-radius: 20px; }
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-subtitle {
    font-size: 18px;
    font-weight: 800;
    color: #333333;
}
.date-range {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-arrows { 
    display: flex; 
    gap: 8px; 
}
.nav-btn {
    width: 36px;
    height: 36px;
    color: #5cb85c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.nav-btn:hover { 
    color: #3fab3c; 
}
.schedule-viewport {
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    overflow: hidden;
}
.schedule-grid {
    display: flex;
    transition: transform 0.4s ease;
}
.day-column {
    flex: 0 0 14.285%;
    min-width: 14.285%;
    border-right: 1px solid #f0f2f5;
}
.day-header {
    background: #f9fbfe;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
}
.day-name {
    font-size: 16px;
    color: #8a96a3;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.day-date {
    font-weight: 400;
    font-size: 16px;
    margin-top: 4px;
    color: #333333;
}
.time-slots {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.slot {
    border: 1px solid transparent;
    background: #f9fbfe;
    padding: 10px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #b0bac5;
    cursor: default;
    transition: all 0.2s;
}
.slot.available {
    background: #f0fcf0;
    border: 1px solid #e2f4e2;
    color: #5cb85c;
    cursor: pointer;
}
.slot.available:hover {
    background: #3FAB3C;
    transform: translateY(-1px);
    color: #ffffff;
}
.booking-footer {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.info-list {
    list-style: none;
    padding: 0;
    font-size: 12px;
    color: #8a96a3;
}
.info-list li {
    /*display: flex;*/
    align-items: center;
}
.info-list li::before {
    content: "•";
    color: #5cb85c;
    margin-right: 8px;
    font-weight: bold;
    font-size: 18px;
}
.contact-block { 
    display: flex; 
    gap: 12px; 
}
.phone-card {
    background: #f4f7f9;
    padding: 12px 24px;
    border-radius: 16px;
    position: relative;
    border: 1px solid #f0f2f5;
}
.online-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #5cb85c;
    border-radius: 50%;
    border: 2px solid #ffffff;
}
.phone-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #8a96a3;
    font-weight: 700;
}
.phone-number {
    font-size: 18px;
    font-weight: 900;
    color: #1a1a1a;
    margin-top: 2px;
    text-decoration: none;
}
.chat-btn {
    background: #f4f7f9;
    border: 1px solid #f0f2f5;
    width: 64px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.policy_new {
    color: #5cb85c;
    text-decoration: underline;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: 1px solid #eee;
    width: 40px; height: 40px; border-radius: 10px;
    font-size: 24px; cursor: pointer; color: #999;
}
.modal-title {
    font-size: 28px; font-weight: 800;
    margin-bottom: 25px; color: #1a1a1a;
}
.modal-doctor-card {
    background: #F4F7FD;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.modal-avatar {
    width: 60px; height: 60px;
    background: white; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
#modalDoctorPhoto picture, #modalDoctorPhoto img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.modal-doctor-name { font-weight: 700; font-size: 18px; margin-bottom: 5px; }
.modal-doctor-meta { color: #8a96a3; font-size: 14px; margin-bottom: 15px; }
.modal-info-row { display: flex; gap: 15px; }
.modal-info-item { 
    background: white; padding: 10px 15px; 
    border-radius: 12px; display: flex; gap: 8px; font-size: 14px;
}
.modal-info-label { color: #8a96a3; }
.modal-info-value { font-weight: 600; }
.modal-input-group { display: flex; gap: 15px; margin-bottom: 15px; }
.modal-input-group input, .modal-form textarea {
    width: 100%; padding: 16px 20px;
    border: 1px solid #E2E8F0; border-radius: 15px;
    font-size: 15px; outline: none;
}
.modal-form textarea { height: 120px; margin-bottom: 20px; resize: none; }
.modal-checkbox-container {
    display: flex; gap: 12px; cursor: pointer;
    font-size: 12px; color: #666; line-height: 1.4;
    margin-bottom: 25px; align-items: flex-start;
}
.modal-checkbox-container input { display: none; }
.checkmark {
    padding-left: 3px;
    min-width: 20px; height: 20px;
    border: 2px solid #5cb85c; border-radius: 6px;
    position: relative;
}
.modal-checkbox-container input:checked + .checkmark { background: #5cb85c; }
.modal-checkbox-container input:checked + .checkmark::after {
    content: ""; position: absolute; left: 6px; top: 2px;
    width: 5px; height: 10px; border: solid white;
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.modal-submit-btn {
    width: 100%; background: #5cb85c; color: white;
    border: none; padding: 18px; border-radius: 15px;
    font-weight: 700; font-size: 18px; cursor: pointer;
}
.alert-content { max-width: 400px; padding: 40px 30px; text-align: center; }
.alert-icon { margin-bottom: 20px; display: flex; justify-content: center; }
@media (max-width: 1024px) {
    .day-column { flex: 0 0 33.33%; min-width: 33.33%; }
}
@media (max-width: 768px) {
    .info-list li {
      margin-bottom: 5px;
    }
    .calendar-header {
        display: flex;
        flex-wrap: wrap; 
        align-items: center;
        justify-content: space-between;
        gap: 8px 0; 
    }
    .section-subtitle { width: auto; flex: 1; margin-bottom: 0; font-size: 16px; }
    .calendar-nav { order: 2; }
    .date-range { 
        width: 100%; order: 3; display: block; 
        font-size: 13px; color: #8a96a3; margin-top: -5px; 
    }
    .booking-title { font-size: 28px; }
    .filters-row { flex-direction: column; }
    .filter-select select { max-width: 90%; }
    .doctors-grid { grid-template-columns: 1fr; max-height: 400px; }
    .day-column { flex: 0 0 50%; min-width: 50%; }
    .booking-footer { flex-direction: column; align-items: flex-start; }
    .contact-block { width: 100%; margin-top: 24px; }
    .phone-card { flex: 1; }
    .phone-number { font-size: 14px; }
}
@media (max-width: 600px) {
    .modal-content { padding: 20px; border-radius: 25px; height: auto; max-height: 90vh; overflow-y: auto; }
    .modal-doctor-card { flex-direction: column; background: none; padding: 0; }
    .modal-avatar-wrapper { display: none; }
    .modal-info-row { flex-direction: column; }
    .modal-info-item { background: #F4F7FD; }
    .modal-input-group { flex-direction: column; }
}