.get-offer-modal {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.get-offer-modal.active {
  display: flex;
}

.get-offer-form {
  width: 95%;
}

.get-catalog {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.get-catalog.active {
  display: flex;
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
}

.modal-form-content {
  background-color: var(--light-color);
  width: 60%;
  max-width: 600px;
  max-height: 80vh;
  padding: 40px 0;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: normal;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.close:hover {
  color: #000;
}

.modal-form-content h2 {
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
  font-size: 32px;
  font-weight: normal;
}

.modal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.modal-row > div {
  flex: 1;
  min-width: 200px;
}

.modal-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: normal;
  color: var(--text-color);
  font-size: 16px;
}

.modal-row input,
.modal-row textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.modal-row input:focus,
.modal-row textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.modal-row textarea {
  resize: vertical;
  min-height: 50px;
}

.modal-actions {
  text-align: center;
  margin-top: 40px;
}

.modal-actions button {
  background-color: var(--primary-color);
  color: white;
  padding: 18px 0;
  border: none;
  font-size: 20px;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 200px;
}

.modal-actions button:hover {
  background-color: var(--secondary-color);
}

/* Country code modal specific */
.country-code-modal .modal-form-content {
  padding: 30px 0;
}

.country-code-modal h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

.country-code-modal .modal-row {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .modal-form-content {
    width: 90%;
    padding: 30px 0;
  }

  .modal-row {
    flex-direction: column;
  }

  .modal-row > div {
    min-width: unset;
  }

  .modal-form-content h2 {
    font-size: 28px;
  }

  .modal-actions button {
    font-size: 18px;
    padding: 16px 0;
  }

  .country-code-modal .modal-form-content {
    padding: 20px 0;
  }

  .country-code-modal h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .modal-form-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0;
    position: fixed;
    max-height: 95vh;
  }

  .close {
    top: 12px;
    right: 15px;
    font-size: 28px;
  }

  .modal-form-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .modal-row {
    gap: 15px;
    margin-bottom: 20px;
  }

  .modal-row > div {
    min-width: unset;
  }

  .modal-row label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .modal-row input,
  .modal-row textarea {
    padding: 12px;
    font-size: 14px;
    height: 42px;
  }

  .modal-row textarea {
    min-height: 80px;
    height: auto;
  }

  .modal-actions {
    margin-top: 30px;
  }

  .modal-actions button {
    font-size: 16px;
    padding: 14px 0;
    width: 100%;
    max-width: 300px;
  }

  /* Country code modal specific */
  .country-code-modal .modal-form-content {
    padding: 15px 0;
  }

  .country-code-modal h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .country-code-modal .modal-row {
    margin-bottom: 15px;
  }
}

@media (max-width: 360px) {
  .modal-form-content {
    padding: 15px 0;
  }

  .modal-form-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .modal-row {
    gap: 12px;
    margin-bottom: 15px;
  }

  .modal-row label {
    font-size: 13px;
  }

  .modal-row input,
  .modal-row textarea {
    padding: 10px 0;
    font-size: 13px;
    height: 40px;
  }

  .modal-actions button {
    font-size: 15px;
    padding: 12px 0;
  }
}
