.profile {
  padding: 2rem 1rem;
  max-width: 700px;
  margin: 0 auto;
  font-family: system-ui, sans-serif;
  color: #333;
}

.profile__title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.profile__success {
  background-color: #e6f9f0;
  border: 1px solid #2ecc71;
  color: #2ecc71;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile__label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 0.95rem;
}

.profile__input,
.profile__input[type="file"],
.profile__input[type="email"],
textarea {
  margin-top: 0.4rem;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.profile__image {
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.profile__fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile__legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #111;
}

.profile__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.profile__button {
  padding: 0.75rem 1rem;
  background-color: #111;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.profile__button:hover {
  background-color: #333;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .profile__title {
    font-size: 1.5rem;
  }

  .profile__image {
    max-width: 100%;
  }

  .profile__form {
    gap: 1rem;
  }

  .profile__button {
    width: 100%;
  }
}
