/* Ubuntu font definitions from provided CSS */
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/300-normal.eot");
  src: local("Ubuntu Light"),local("Ubuntu-Light"),url("fonts/300-normal.woff") format("woff"),url("fonts/300-normal.ttf") format("truetype"),url("fonts/300-normal.eot") format("embedded-opentype");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/400-normal.eot");
  src: local("Ubuntu"),url("fonts/400-normal.woff") format("woff"),url("fonts/400-normal.ttf") format("truetype"),url("fonts/400-normal.eot") format("embedded-opentype");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/500-normal.eot");
  src: local("Ubuntu Medium"),local("Ubuntu-Medium"),url("fonts/500-normal.woff") format("woff"),url("fonts/500-normal.ttf") format("truetype"),url("fonts/500-normal.eot") format("embedded-opentype");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/700-normal.eot");
  src: local("Ubuntu Bold"),local("Ubuntu-Bold"),url("fonts/700-normal.woff") format("woff"),url("fonts/700-normal.ttf") format("truetype"),url("fonts/700-normal.eot") format("embedded-opentype");
}

@font-face {
  font-family: "Ubuntu";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/400-italic.eot");
  src: local("Ubuntu Italic"),local("Ubuntu-Italic"),url("fonts/400-italic.woff") format("woff"),url("fonts/400-italic.ttf") format("truetype"),url("fonts/400-italic.eot") format("embedded-opentype");
}


body {
font-family: "Ubuntu", sans-serif;
font-weight: 400;
background-color: #f5f5f5;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px 20px 20px;
box-sizing: border-box;
}

h2 {
font-weight: 700;
font-size: 1.8rem;
color: #2c3e50;
margin-bottom: 20px;
}

/* Form styles */
form {
background: white;
padding: 25px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 600px;
margin-bottom: 20px;
}

label {
display: block;
font-weight: 400;
margin-bottom: 8px;
color: #34495e;
}

input, select {
width: 100%;
padding: 10px;
font-size: 1rem;
border: 1px solid #dcdcdc;
border-radius: 4px;
margin-bottom: 20px;
font-family: "Ubuntu", sans-serif;
font-weight: 400;
box-sizing: border-box;
}

#phone{
  margin-bottom: -8px;
}

input:focus, select:focus {
outline: none;
border-color: #F46D00;
box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

button {
width: 35%;
padding: 12px;
background-color: #F46D00;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}

button:hover {
background-color: #ff8622c4;
}

button:focus {
outline: none;
box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Checkbox list styles */
.question-list {
  list-style: none;
  padding: 0px;
  margin-bottom: 35px;
}

.question-list__item {
  padding-left: 40px;
  position: relative;
  margin-bottom: 20px;
}

.question-list__item input[type="checkbox"] {
  position: absolute;
  left: 14px;
  top: 0px;
  margin: 0px;
  width: 20px;
  height: 20px;
  border: 2px solid #3498db;
  border-radius: 4px;
  appearance: none; 
  cursor: pointer;
  background-color: #fff;
  transition: all 0.2s;
}

.question-list__item input[type="checkbox"]:hover {
  border-color: #2980b9;
}

.question-list__item input[type="checkbox"]:checked {
  background-color: #3498db;
  border-color: #3498db;
}

.question-list__item input[type="checkbox"]:checked::after {
  content: '\2713'; 
  color: white;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.question-list__item label {
  padding-left: 10px;
  margin-bottom: 15px;
}


/* Timer styles */
#timer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #c0392b;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#time-display {
font-weight: 700;
color: #c0392b;
}

#result {
color: #27ae60;
font-weight: 500;
margin-top: 10px;
}

#error, #email-error {
color: #c0392b;
font-weight: 500;
margin-top: 10px;
}

/* Responsive design */
@media (max-width: 600px) {
form {
  padding: 15px;
}

h2 {
  font-size: 1.5rem;
}

#timer {
  font-size: 1rem;
}
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-block {
  padding: 10px;
  margin: 0 0 20px 0;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  display: none;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  text-align: justify;
}

.text-block[style*="display: block"] {
  display: block !important;
}

#foreign_phone {
  list-style: none;
  padding: 0px;
  margin-bottom: 10px;
}

#foreign_phone_input {
  padding-left: 30px;
  position: relative;
  margin-bottom: 20px;
}

#foreign_phone_yes[type="checkbox"] {
  -webkit-appearance: none; /* Safari/Chrome */
  appearance: none; /* Отключаем стандартный стиль */
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;

  border: 2px solid #3498db;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

#foreign_phone_yes[type="checkbox"]:hover {
  border-color: #2980b9;
}

#foreign_phone_yes[type="checkbox"]:checked {
  background-color: #3498db;
  border-color: #3498db;
}

#foreign_phone_yes[type="checkbox"]:checked::after {
  content: '\2713'; 
  color: white;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#foreign_phone_text{
  font-size: 14px;
}

.file-info {
  border-radius: 4px;
  padding: 0px;
  margin: 5px 0;
  font-size: 0.9rem;
}

.policy-link {
  text-decoration: underline;
  cursor: pointer;
  color: #0066cc;
}

.policy-link:hover {
  color: #004499;
}

.policy-text {
  margin-bottom: 20px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.header img {
  height: 40px;
  width: auto;
  display: block;
}

.left-logo {
  margin-right: auto;
}

.right-logo {
  margin-left: auto;
  transform: scaleY(-1);
  transform: scaleX(-1);
}

