/* ===================================
   Offer Modal — "Получите предложение"
   =================================== */

/* Overlay */
.offer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.offer-modal.active {
  display: flex;
}

/* Content box */
.offer-modal__content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 32px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: offerModalSlideUp 0.3s ease;
}

@keyframes offerModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close button */
.offer-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #333;
  transition: color 0.2s ease;
}

.offer-modal__close:hover {
  color: #e53935;
}

.offer-modal__close-icon {
  width: 24px;
  height: 24px;
}

/* Title */
.offer-modal__title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.2;
}

/* Form */
.offer-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Input group */
.offer-modal__input-group {
  display: flex;
  flex-direction: column;
}

/* Input fields */
.offer-modal__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.offer-modal__input:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.offer-modal__input::placeholder {
  color: #999;
}

/* Textarea */
.offer-modal__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  outline: none;
  resize: vertical;
  min-height: 100px;
}

.offer-modal__textarea:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.offer-modal__textarea::placeholder {
  color: #999;
}

/* Submit button */
.offer-modal__submit-btn {
  width: 100%;
  padding: 16px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 8px;
  text-transform: uppercase;
}

.offer-modal__submit-btn:hover {
  background: #c62828;
}

.offer-modal__submit-btn:active {
  transform: scale(0.98);
}

.offer-modal__submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Required note */
.offer-modal__note {
  font-size: 13px;
  color: #999;
  text-align: left;
  margin: 4px 0 0;
}

.offer-modal__note-asterisk {
  color: #e53935;
}

/* Responsive */
@media (max-width: 480px) {
  .offer-modal__content {
    padding: 32px 20px 24px;
    border-radius: 12px;
  }

  .offer-modal__title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .offer-modal__input,
  .offer-modal__textarea {
    padding: 12px 14px;
    font-size: 15px;
  }

  .offer-modal__submit-btn {
    padding: 14px;
    font-size: 15px;
  }
}
