* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.enlarged {
    min-height: 0 !important;
}
a.btn-theme-link {
  color: #902949;
}
a.btn-theme-link:hover {
  color: #64222A;  
}


.main-page {
  background: #8C2843;
  background: linear-gradient(135deg, rgba(140, 40, 67, 0.78) 0%, rgba(100, 34, 42, 0.99) 48%, rgba(144, 41, 73, 1) 100%);
  min-height: 100vh;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
.header-wrap .left-side {
  width: 220px;
}
.header-wrap .right-side {
  width: 100px;
}
.header-wrap .left-side img,
.header-wrap .right-side img {
  width: 100%;
  height: auto;
}

.title-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
}
.title-wrap .left-side {
  width: 210px;
  position: absolute;
  left: -100px;
  top: 20px;
}
.title-wrap .right-side {
  width: 320px;
}
.title-wrap img {
  width: 100%;
  height: auto;
}

.card.card-theme {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
}
.card.card-form {
  max-width: 80%;
  margin-left: auto;
}

.step, .form-section, .doctor-info, .certificate {
  /*background: #f8f9fa;*/
  background:#fee8ed;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  /*border-left: 4px solid #007bff;*/
}

.step-number {
  background: #9a223f;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}
.step h5, .doctor-info h5 {
  font-size: 1.05rem;
  color: #555;
  padding-left: 0.85rem;
}
.step-number2 {
  background: #faceda;
  color: #9a223f;
  border-radius: 5px;
  display: inline-block;
  align-items: center;
  justify-content: flex-start;
  font-weight: bold;
  margin-right: 0.85rem;
  margin-bottom: 0rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  width: auto;
  margin-left: -3px;
  border: 1px solid #f6c4d1;
  position: relative;
}
.step-number2::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  border-left: 1px dashed #d5aeb7;
  width: 1px;
  height: 100%;
  position: absolute;
  right: -1rem;
  top: 0;
}

.model-wrap {
  display: flex;
  width: 400px;
  position: fixed;
  bottom: 0vh;
  left: 0;
  z-index: 1;
}
.model-wrap img {
  width: 100%;
}

.doctor-card {
  border: 1px solid #d4afb7;
  color: #666;
}
.doctor-card h6 {
  font-size: 0.9rem;
  color: #992240;
}
.doctor-card p {
  font-size: 0.8rem;
}

.form-section {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.doctor-info {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px dashed #d5aeb7;
}

.certificate {
  position: relative;
  z-index: 2;
}

.certificate-title {
  font-size: 2.1rem;
  font-weight: 600;
  color: #992240;
  text-align: center;
  margin-bottom: 0.5rem;
}
.participant-info {
    background: rgb(248, 249, 250,0.45);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0 0;
    border: 1px dashed #d5aeb7;
}
.participant-name {
  font-size: 2rem;
  font-weight: bold;
  color: #992240;
  text-align: center;
  margin-bottom: 1rem;
}
.drawing-preview {
  text-align: center;
  margin: 2rem 0;
}
.drawing-preview img {
  max-width: 300px;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.certificate-footer {
  text-align: center;
  margin-top: 0rem;
  padding-top: 2rem;
  border: 0;
}
.certificate-footer .footer-note {
  color: #666;
  font-size: 0.85rem;
}
.participation-code {
  background: #007bff;
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  display: inline-block;
  font-weight: bold;
  margin: 1rem 0;
}
.certificate-page .title-wrap {
  justify-content: center;
}
.certificate-page .title-wrap .left-side {
  width: 180px;
  position: absolute;
  left: 0px;
  top: 60px;
  opacity: 0;
}
.certificate-page .title-wrap .right-side {
  width: 220px;
}

.participant-info .row {
  width: 70%;
  margin: auto;
}
.participant-info .row .col-12:nth-child(odd) {
  border-right: 1px dashed #d5aeb7;
}
.participant-info .row .col-12:nth-child(1),
.participant-info .row .col-12:nth-child(2) {
  border-bottom: 1px dashed #d5aeb7;
}
.participant-info .card {
  margin-bottom: 0;
  border: 0px;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.participant-info .card p {
  font-size: 1.15rem;
}
.participant-info .card p strong {
  font-size: 0.9rem;
}


.btn.btn-theme {
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
}

.btn.btn-theme-primary {
  color: #fff;
    background-color: #902949;
    border-color: #902949;
}
.btn.btn-theme-primary:hover {
  background-color: #64222A;
    border-color: #64222A;
}
.btn.btn-theme-primary:focus, 
.btn.btn-theme-primary.focus {
  outline: none;
  box-shadow: none;
}
.btn.btn-theme-primary:not(:disabled):not(.disabled):active, 
.btn.btn-theme-primary:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #64222A;
    border-color: #64222A;
}

.btn.btn-download {
  background: linear-gradient(45deg, #28a745, #20c997);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease;
}
.btn.btn-download:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}
.btn.btn-home {
  background: linear-gradient(45deg, #6c757d, #495057);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease;
}
.btn.btn-home:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

@media screen and (max-width: 1366px) {
  .title-wrap .left-side {
    width: 180px;
    left: -60px;
    top: 0;
  }
  .title-wrap .right-side {
    width: 280px;
  }
  .model-wrap {
    width: 330px;
  }
}

@media screen and (max-width: 1024px) {
  .title-wrap .left-side {
    width: 160px;
    left: 0px;
    top: 0;
  }
  .title-wrap .right-side {
        width: 250px;
    }
}

@media screen and (max-width: 767px) {
      .model-wrap {
        /*display: none;*/
        position: relative;
        bottom: auto;
    }
    .card.card-form { max-width: 100%; }
}

@media screen and (max-width: 480px) {
  .title-wrap .left-side {
    width: 130px;
    left: -20px;
    top: 90px;
  }
  .title-wrap .right-side {
      width: 220px;
  }

  .btn.btn-theme {
    width: 100%;
  }
  .btn.btn-theme:not(:last-child) {
    margin-bottom: 1rem;
  }
  .btn.btn-theme:last-child {
    margin-left: 0 !important;
  }

  .certificate {
    padding: 1rem 0.5rem;
  }
  .certificate-title { font-size:1.2rem }
  .participant-name { font-size:1.35rem }
  .participant-info {
    padding: 1rem;
  }
  .participant-info .row { width:100%; }
  .participant-info .row .col-12:nth-child(odd) {
    border-right: 0px dashed #d5aeb7;
  }
  .participant-info .row .col-12:not(:last-child) {
    border-bottom: 1px dashed #d5aeb7;
  }
  .btn.btn-download {
    margin: 0;
    margin-bottom: 1rem;
  }

  .card.card-theme .card-body {
    padding: 1rem !important;
  }

}

