/* ===== HEADER ===== */

.site-header {
  width: 100%;
  font-family: Georgia, serif;
}

.top-bar {
  background: #2f2f2f;
  color: #ccc;
  font-size: 14px;
  padding: 8px 20px;
  text-align: right;
}

.header-main {
  text-align: center;
  padding: 30px 20px;
  background: #f5f5f5;
}

.header-main h1 {
  font-size: 32px;
  color: #555;
  margin-bottom: 10px;
}

.header-main p {
  font-size: 16px;
  color: #777;
  max-width: 900px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(63, 92, 153, 0.3);
  padding: 0 5px;
  flex-wrap: wrap;
}


.nav a {
  color: #0a5fad;
  text-decoration: none;
    font-size: ;
    font-weight: bold;
    font-family: Impact, serif;
}

.nav a.active {
  background: #e0e0e0;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
}

.btn-calc {
  margin-left: auto;
  border: 2px solid orange;
  padding: 6px 16px;
  border-radius: 4px;
  color: orange !important;
}


body {
  display: flex;
  flex-direction: column;
}


/* десктоп */

@media (min-width: 768px) {
  body {
    margin: 0;
    display: flex;              /* 🔥 ВАЖНО */
    flex-direction: column;     /* 🔥 чтобы шапка была сверху */
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
  }
}

  .container {
    max-width: 90%;
    justify-content: center; /* по горизонтали */
    background: rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 30px;
    margin: 1% auto; /* 1 % сверху/снизу, auto слева/справа → центрирование */
  }

  h1 {
    text-align: center;
    font-size: 30px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  }

  input, select, button {
    margin-bottom: 16px;
  }

  button {
    height: 56px;
    font-size: 17px;
  }
  
button {
  position: relative;
  overflow: hidden;
}

button {
  transition: all 0.15s ease;
}

button:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.btn-back:active {
  background: #d0d0d0;
}

  #comment {
    margin-bottom: 20px;
  }

#text_1 {              /* текст над кнопкой Далее шаг1 */
  font-family: Arial;
  color: #333;
  padding: 10px;
  font-size: 15px;
}


/* по умолчанию — МОБИЛЬНАЯ */
body {
  margin: 0;
  background: #1f2933;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1f2933 url('https://transfer-komfort.ru/miniapp/go/img/bg2.jpg') center/cover no-repeat; /* путь к картинке */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.container {
  backdrop-filter: blur(2px);
  max-width: 700px;
  justify-content: center; /* по горизонтали */
  padding: 0 14px;
  backdrop-filter: blur(2px);
  min-height: 740px;           /* 🔥 ключ */
  transition: min-height 0.3s ease;
}

/* На маленьких экранах — уменьшаем боковые отступы до 1 % */
@media (max-width: 767px) {
  .container {
    margin: 1% 1%; /* 1 % сверху/снизу, 1 % слева/справа */
  }
}

h1 {
  color: #fff;
text-shadow:
  2px 2px 4px rgba(0, 0, 0, 0.5),
  0 0 6px rgba(0, 0, 0, 0.5);
    padding: 4% 0;
}


h2 {
  color: #fff;
  margin: 16px 0 12px;
  text-shadow:
  2px 2px 4px rgba(0, 0, 0, 0.5),
  0 0 6px rgba(0, 0, 0, 0.5);
  padding-top: 3%;
}

h3 {
  color: #fff;
  margin: 14px 0 12px;
  text-shadow:
  2px 2px 4px rgba(0, 0, 0, 0.5),
  0 0 6px rgba(0, 0, 0, 0.5);
  padding-top: 3%;
}

input, select, button {
  width: 100%;
  height: 50px;
  margin-bottom: 14px;
  padding: 0 14px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  box-sizing: border-box;
}

input, select {
  background: #fff;
}

select {
  appearance: none;
  -webkit-appearance: none;
}

.row {
  display: flex;
  gap: 20px;
}

.row input {
  flex: 1;
}

button {
  background: #4c63b6;
  color: #fff;
  font-weight: 600;
  transition: all 0.15s ease;
}

button:active {
  transform: scale(0.97);
  opacity: 0.9;
}


.btn-back {
  background: #e5e5e5;
  color: #333;
}

.btn-back:active {
  background: #d0d0d0;
}

.hidden {
  display: none;
}

.error {
  border: 2px solid #e53935 !important;
}

.extra-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.extra-wrap label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

/* ===== ДОП. УСЛУГИ (КОМПАКТНЫЕ ПЛАШКИ) ===== */

.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;

  background: #fff;
  border-radius: 16px;

  padding: 16px 18px;     /* 🔥 меньше высота */
  margin-bottom: 8px;

  font-size: 15px;
  line-height: 1.3;
  color: #000;

  box-sizing: border-box;
}


/* чекбокс не растягиваем */

.extra-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.extra-item input[type="checkbox"] {
  accent-color: ;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  transform: scale(1.2);
}


/* Чекбокс  */

.checkbox-container input[type="checkbox"] {
transform: scale(1.4);
margin: 0;
}

.checkbox-container label {
display: flex;
align-items: ;
gap: 6px;
font-size: 16px;
color: #000;
margin: 15px;
}

.checkbox-text {
  flex: 1;
}


#send-copy {
  width: 16px;
  height: 16px;
margin-left: 10px;
  padding: 0;
  border: 1px solid #ccc; /* видимая рамка для контроля */
  background: white;
  flex-shrink: 0; /* запрещает сжатие в flex‑контейнере */
}



#comment {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  padding-top: 12px;
  font-size: 16px;
  line-height: 1.4;

  resize: none;
  overflow: hidden;
  box-sizing: border-box;

  border-radius: 16px;
  margin-bottom: 16px;
}

/* ===== Заставка ===== */

#splash {
  position: fixed;
  inset: 0;
  background: #1f2933; /* цвет фона, как у приложения */
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

#splash img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 ВАЖНО */
  transition: opacity 0.4s ease;
}

/* ===== Стиль дата время ===== */

.field {
  flex: 1;
}

.field label {
  display: block;
  font-size: 13px;
  color: #000;
  margin-bottom: 4px;
}

/* ===== Оформление шага 4. сообщение ===== */

#step4 p {
  color: #000;
  font-size: 18px;
  line-height: 1.5;
}

.text-block {
  color: #000;
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px;

}

.text-block p {
  margin: 10px 0;
  text-indent: 20px; /* 🔥 красная строка */
}

/* общие */
.row {
  display: flex;
  gap: 10px;
}
.row select,
.row input {
  flex: 1;
}

input, select {
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.site-footer {
  text-align: center;
  color: #ccc;
  font-size: 12px;
  padding: 10px 5px;
  margin-top: auto;
  bottom: 0;
  left: 0;
}

#priceValue {
  text-shadow: none;
    color: #000;
}


