@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

.container {
  max-width: 1170px;
  width: 100%;
  padding-right: 0px;
  padding-left: 0px;
  margin-right: auto;
  margin-left: auto;
}

.jumbotron, .container .jumbotron {
  margin: 0;
  padding: 30px;
}

.jumbotron {
  background-color: #fff;
  border-radius: 3px;
}


input#email {
  width: calc(100% - 250px);
  border-radius: 0.3rem;
}

.email-submit {
  width: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
}

.btn.btn-send.btn-danger.btn-lg.email-submit {
  margin-left: 20px !important;
}

.form-control {
  background-color: #f9f9f9;
}

.form-control-lg, .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn {
  padding: .7rem 1rem .7rem;
}

.form-horizontal label, .form-horizontal legend {
  font-weight: 500;
}

.btn-danger {
  border-color: #291c47;
  background: linear-gradient(to bottom right,#291c47 46%,#2c306d,#1e3c6e 80%);
  color: #fff;
}

.btn-danger:hover {
  border-color: #9d281f;
  background: linear-gradient(to top right,#9d281f 46%,#a23123,#af503e 80%);
  color: #fff;
}

.btn.btn-send.btn-danger.btn-lg.email-submit {
  border-color: #291c47;
  background: linear-gradient(to bottom right,#291c47 46%,#2c306d,#1e3c6e 80%);
  color: #fff;
}

.btn.btn-send.btn-danger.btn-lg.email-submit:hover {
    border-color: #9d281f;
    background: linear-gradient(to top right,#9d281f 46%,#a23123,#af503e 80%);

}

.custom-control-input:checked ~ .custom-control-indicator {
  color: #fff;
  background-color: #053c97 !important;
  border: 0;
}

.btn-warning {
  color: #fff;
  background-color: #9d281f;
  border-color: #9d281f;
}

.btn-warning:hover {
  color: #fff;
  background-color: #0655d6;
  border-color: #0655d6;
}

.custom-control-indicator {
  background-color: #f0f0f0;
  margin-top: 0;
  border: 1px solid #d4d9de;
}


.form-control {
  width: 100%;
  padding: .5rem 1rem .6rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 3px;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: rgba(0, 49, 108,.25);
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(0, 49, 108,.25);
}

.text-warning {
  color: #9d281f !important;
}

a.text-warning:focus, a.text-warning:hover {
  color: #9d281f !important;
  text-decoration: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 15px;
  padding-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 3px;
}

.select2-container .select2-selection--single {
  height: 42px !important;
}

.select2-selection__arrow {
  height: 41px !important;

}
.select2-selection__rendered {
  line-height: 41px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 1px;
  right: 6px;
  width: 20px;
}

.form-horizontal .form-group.row span.sublegend {
  font-size: 0.75rem;
  display: block;
  font-weight: 400;
}

.custom-control-description {
  padding-left: 3px;
}

.label_email {
  padding-bottom: 10px;
}

.btn-group-lg > .btn, .btn-lg {
  padding: .5rem 2rem .6rem;
  font-size: 1.2rem;
  line-height: 1.5;
  border-radius: 40px;
}

label.confirm-format-one {
  margin: 0;
  min-height: 1.5rem;
  padding-left: 1rem;
}

.col-1 {
  -ms-flex: 0 0 3%;
  flex: 0 0 3%;
  max-width: 3%;
}

.select2-results__option {
	padding: 6px 12px;
	user-select: none;
	-webkit-user-select: none;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #053c97;
  color: white;
}

@media screen and (max-width:500px){
.jumbotron, .container .jumbotron {padding: 20px;}
.form-container { width: 100%;padding: 20px 10px;}
input#email {width: 100%;}
.btn.btn-send.btn-warning.btn-lg.email-submit {margin: 0px !important; width: 100%; margin-top: 15px !important;}
.btn-group-lg > .btn, .btn-lg {width: 100%;}
.btn.btn-send.btn-danger.btn-lg.email-submit {margin-left: 0px !important;margin-top: 15px !important;}
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    color: #2c2c2c;
    background-color: #f5f7fa;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
    max-height: 240px;
    object-fit: cover;
}

.header {
    position: relative;
    background: url('https://belarusmedica.by/bitrix/templates/explo/img/forum/forum-bg.jpg') center center / cover no-repeat;
    color: #fff;
    padding: 40px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* затемнение */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
        position: relative;
    z-index: 1;
}

.header-text {
    flex: 1 1 300px;
}

.header-text h1 {
    font-size: 2.2rem;
    margin: 0;
    line-height: 1.2;
}

.header-text p {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.95;
}

.header-image {
    flex: 0 0 300px;
}

.header-image img {
    width: 100%;
    border-radius: 12px;
}


.form-container {
    flex: 1;
    padding: 30px 20px;
    width: 900px;
    margin: 0 auto;
}

.form-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 5px solid #00316c;
}

.footer {
      background: linear-gradient(to right,#00316c, #1f6b98);
    color: white;
    padding: 25px 20px;
    text-align: center;
    margin-top: auto;
}

.footer img {
    height: 20px;
    vertical-align: middle;
    margin: 0 6px;
}

.support {
    margin-top: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.support a {
    color: #1a3e72;
    text-decoration: underline;
}

.support a:hover {
    color: #f7941d;
}

a {
  color: #1a3e72;
}
a:hover {
  color: #f7941d;
  text-decoration: none;
}

.link {
  color:#ffffff;
}
.link:hover {
  color:#f7941d;
}

   @media screen and (max-width: 500px) {
  body {
    font-size: 16px;
  }

  .header-text h1 {
    font-size: 2rem;
  }

  .header-text p {
    font-size: 1.5rem;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-image {
    flex: 1 1 100%;
    margin-top: 20px;
    width: 70%;
      display: block;
  margin-left: auto;
  margin-right: auto;
  }

  .form-container {
    width: 100%;
    padding: 20px 10px;
  }

  .form-box {
    padding: 20px 15px;
  }

  .btn.btn-send.btn-danger.btn-lg.email-submit,
  .btn.btn-send.btn-warning.btn-lg.email-submit {
    width: 100%;
    margin: 15px 0 0 0 !important;
  }

  input#email {
    width: 100%;
    margin-bottom: 10px;
  }

  .btn-group-lg > .btn, .btn-lg {
    width: 100%;
  }
}

.header-image a img {
    transition: opacity 0.3s ease;
    display: block;
}

.header-image a:hover img[src*="belarusmedica-en"] {
    content: url('https://expodat.by/video/repository/belarusmedica-en_4cc30b5f.png');
}

.header-image a:hover img[src*="belarusmedica-ru"] {
    content: url('https://expodat.by/video/repository/belarusmedica-ru_a0d6ceed.png');
}
        