.post-wrapper {
  max-width: 760px;
  margin: 40px auto;
  padding: 20px;
}

.form-title {
  font-family: var(--font-accent);
  font-size: 32px;
  margin-bottom: 24px;
}

.sold-block {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.sold-info {
  background: #FFF7ED;
  border: 1px solid #FEC89A;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  color: #7A341A;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sold-info p {
  margin: 0;
}

.sold-info .btn {
  align-self: flex-start;
}

.form-section {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.form-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.form-section label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin: -8px 0 14px;
}

.input {
  width: 100%;
  background: #F7F9FB;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 15px;
}

.input:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 123, 245, 0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 18px;
}

.photo-drop-zone {
  border: 2px dashed var(--primary-light);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  color: var(--text);
  background: #f9fbff;
}

.photo-drop-zone.is-dragover {
  background: #f1f5ff;
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
}

.photo-drop-zone__icon {
  font-size: 46px;
  margin-bottom: 12px;
}

.photo-drop-zone__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.photo-drop-zone__hint {
  color: var(--text-soft);
  margin: 0;
}

.photos-preview {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.photos-preview .photo-thumb {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.photos-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-autocomplete {
  position: relative;
  display: block;
}

.city-autocomplete__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 40;
  display: none;
}

.city-autocomplete__dropdown.is-visible {
  display: block;
}

.city-autocomplete__item {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

.city-autocomplete__item:hover,
.city-autocomplete__item.is-active {
  background: rgba(74, 123, 245, 0.08);
}

.city-autocomplete__empty {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.profile-photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.profile-photo-preview {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  background: #f2f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  font-size: 24px;
  color: #9ca3af;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-preview.is-placeholder {
  background: #f2f3f5;
  color: #9ca3af;
}

.profile-photo-preview.is-placeholder span {
  font-weight: 700;
  font-size: 24px;
}

.profile-photo-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.profile-photo-actions .btn {
  min-width: 200px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
}

.checkbox-field input {
  width: auto;
}

.grid-two label {
  margin-top: 12px;
}

.grid-two {
  display: flex;
  flex-direction: column;
}

.grid-two .input {
  margin-bottom: 8px;
}

.btn.btn-link {
  background: transparent;
  color: var(--primary);
  padding: 0;
  box-shadow: none;
}

.btn.btn-link:hover {
  color: var(--primary-dark);
  background: transparent;
}

.btn.btn-link.danger {
  color: #dc3545;
}

.district-field[hidden] {
  display: none !important;
}

.phone-visibility {
  margin-top: 6px;
  padding: 0;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-soft);
  align-items: center;
  gap: 8px;
}

.category-field[hidden] {
  display: none !important;
}

.auth-form-card {
  max-width: 420px;
  width: 100%;
  margin: 40px auto;
  padding: 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.auth-form-card h1 {
  font-family: var(--font-accent);
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  background: #F7F9FB;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 123, 245, 0.1);
  background: #fff;
}

.auth-form input[type="text"]::placeholder,
.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder {
  color: var(--text-soft);
}

.auth-form .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .post-wrapper {
    padding: 10px;
  }

  .auth-form-card {
    margin: 20px auto;
    padding: 24px 20px;
    max-width: calc(100% - 32px);
  }

  .auth-form-card h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}
