.field2 {
  display: none;
}
.float-field {
  position: relative;
  width: 100%;
}

.float-field input,
.float-field select,
.float-field textarea {
  width: 100%;
  padding: 20px 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--txt);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.float-field textarea {
  min-height: 96px;
  resize: vertical;
  padding-top: 24px;
}

.float-field input::placeholder,
.float-field textarea::placeholder {
  color: transparent;
}

.float-field select {
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.float-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  color: var(--txt2);
  pointer-events: none;
  transition: top 0.2s, transform 0.2s, font-size 0.2s, color 0.2s;
}

.float-field textarea + label {
  top: 18px;
  transform: none;
}

.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label,
.float-field.is-filled label,
.float-field select:focus + label,
.float-field textarea:focus + label,
.float-field textarea:not(:placeholder-shown) + label {
  top: 9px;
  transform: translateY(0);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.float-field input:focus,
.float-field select:focus,
.float-field textarea:focus {
  border-color: var(--y);
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.18);
}

.float-field--dark input,
.float-field--dark select,
.float-field--dark textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.float-field--dark label {
  color: rgba(255, 255, 255, 0.45);
}

.float-field--dark input:focus + label,
.float-field--dark input:not(:placeholder-shown) + label,
.float-field--dark.is-filled label,
.float-field--dark select:focus + label,
.float-field--dark textarea:focus + label,
.float-field--dark textarea:not(:placeholder-shown) + label {
  color: rgba(255, 255, 255, 0.55);
}

.float-field--dark input:focus,
.float-field--dark select:focus,
.float-field--dark textarea:focus {
  border-color: var(--y);
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.12);
}

/* ── CALLBACK FORM (1/index.html) ── */
.callback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.callback-field {
  display: flex;
  flex-direction: column;
}

.callback-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.callback-title {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.1;
}

.callback-sub {
  font-size: 0.82rem;
  color: var(--on-section);
  margin-bottom: 18px;
  line-height: 1.5;
  font-weight: 300;
}

.callback-sub strong {
  color: var(--y);
  font-weight: 600;
}

.callback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--y);
  color: var(--blk);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.callback-btn:hover {
  background: var(--y2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 196, 0, 0.35);
}

.callback-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.callback-agree {
  font-size: 0.68rem;
  color: var(--on-section);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

.callback-agree a {
  color: var(--y);
  text-decoration: underline;
}

.callback-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(245, 196, 0, 0.1);
  border: 1px solid rgba(245, 196, 0, 0.3);
  border-radius: var(--r);
}

.callback-success.is-show {
  display: flex;
}

.callback-success-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--y);
  color: var(--blk);
  font-weight: 800;
}

.callback-success-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.callback-success-text strong {
  color: var(--white);
}

/* Hero float card */
.hero-float .hf-card {
  position: relative;
}

.hero-float .callback-title {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  margin-bottom: 10px;
}

.hero-float .callback-sub {
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.hero-float .callback-form {
  flex: 1;
  gap: 16px;
}

.hero-float .callback-agree {
  font-size: 0.72rem;
  margin-top: auto;
}

.hero-float .float-field input,
.hero-float .float-field select {
  padding: 30px 15px 15px;
  font-size: 0.95rem;
}

.hero-float .float-field label {
  font-size: 0.82rem;
}

.hero-float .callback-time-row {
  gap: 12px;
}

.hero-float .callback-btn {
  padding: 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  margin-top: auto;
}

@media (max-width: 991px) {
  .hero-float .callback-form {
    flex: none;
  }

  .hero-float .callback-btn {
    margin-top: 0;
  }

  .hero-float .callback-agree {
    margin-top: 8px;
  }
}

.callback-title--light {
  color: var(--blk);
}

.callback-sub--light {
  color: var(--txt2);
}

.callback-form--light .callback-agree {
  color: var(--txt2);
}

/* ── CALLBACK MODAL ── */
.callback-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.callback-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.callback-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--blk);
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  padding: 40px 32px 28px;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.3s var(--ease);
}

.callback-overlay.is-open .callback-box {
  transform: scale(1) translateY(0);
}

.callback-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--light);
  color: var(--txt2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.callback-close:hover {
  background: #fee2e2;
  color: #e03a2f;
  transform: rotate(90deg);
}

.callback-box .callback-title {
  color: var(--white);
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.callback-box .callback-sub {
  color: var(--on-section);
  text-align: center;
  margin-bottom: 24px;
}

.callback-box .callback-agree {
  color: var(--txt2);
}

.callback-icon-ring {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 196, 0, 0.15);
  color: var(--y2);
}

.callback-box .callback-btn {
  margin-top: 4px;
}

.callback-box--compact {
  max-width: 400px;
  padding: 32px 28px 24px;
}

.quick-order-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  background: var(--y);
  color: var(--blk);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--r);
}

#quickOrderSub strong {
  color: var(--blk);
  font-weight: 600;
}




/* Стили для сообщений об ошибках */
.error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    display: none; /* По умолчанию скрыты */
    font-weight: normal;
    text-align: left;
}

/* Подсветка поля с ошибкой (необязательно, но улучшает UX) */
.input-error {
    border-color: #ff4d4d !important;
    background-color: none !important;
}

/* Статусное сообщение (общие ошибки сервера) */
.form-status-message {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}