/* =============================================
   EDIT PROFILE SCREEN STYLING
   ============================================= */

.edit-profile-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: 100px;
}

/* =============================================
   PAGE HEADER (Back + Title)
   ============================================= */
.edit-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.edit-header-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #edf2f7;
  background: #ffffff;
  color: var(--dark-charcoal);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.edit-header-back-btn:hover {
  background: #f8fafc;
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.edit-profile-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-charcoal);
}

.edit-header-spacer {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

/* =============================================
   AVATAR SECTION
   ============================================= */
.edit-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 20px;
  gap: 12px;
}

.edit-avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
}

.edit-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--primary-green);
  box-shadow: 0 6px 24px rgba(11, 128, 67, 0.2);
}

.edit-avatar-camera-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary-green);
  border: 2.5px solid #ffffff;
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
}

.edit-avatar-camera-btn:hover {
  background-color: #096836;
  transform: scale(1.1);
}

.edit-avatar-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =============================================
   FORM FIELDS
   ============================================= */
.edit-form-section {
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edit-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 4px;
}

.edit-form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.edit-form-input-icon {
  position: absolute;
  left: 16px;
  font-size: 15px;
  color: var(--primary-green);
  pointer-events: none;
}

.edit-form-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #edf2f7;
  border-radius: 14px;
  padding: 0 16px 0 46px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-charcoal);
  background-color: #fafafa;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edit-form-input:focus {
  border-color: var(--primary-green);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 128, 67, 0.1);
}

.edit-form-input::placeholder {
  color: #b0bec5;
  font-weight: 400;
}

/* =============================================
   SECTION DIVIDER LABEL
   ============================================= */
.edit-section-divider {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 8px 20px 0;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #f0f0f0;
}

/* =============================================
   BOTTOM SAVE BUTTON (Mobile sticky)
   ============================================= */
.edit-profile-save-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1.5px solid #edf2f7;
  box-sizing: border-box;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.edit-profile-save-full-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background-color: var(--primary-green);
  border: none;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(11, 128, 67, 0.25);
}

.edit-profile-save-full-btn:active {
  background-color: #096836;
  transform: scale(0.98);
}

/* =============================================
   SUCCESS TOAST
   ============================================= */
.profile-save-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--dark-charcoal);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-save-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-save-toast i {
  color: #4caf50;
  font-size: 16px;
}

/* =============================================
   DESKTOP RESPONSIVE
   ============================================= */
@media (min-width: 768px) {
  .edit-profile-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 0 80px;
    background-color: #ffffff;
  }

  .edit-profile-header {
    padding: 0 0 28px;
  }

  .edit-profile-title {
    font-size: 24px;
  }

  .edit-avatar-section {
    padding: 0 0 28px;
  }

  .edit-section-divider {
    margin: 8px 0 0;
    font-size: 13px;
  }

  .edit-form-section {
    margin: 0;
    gap: 20px;
  }

  .edit-form-input {
    height: 54px;
    font-size: 15px;
    border-radius: 14px;
  }

  /* On desktop, use inline save button — no sticky footer */
  .edit-profile-save-footer {
    position: static;
    padding: 28px 0 0;
    border-top: none;
    box-shadow: none;
    background: transparent;
  }

  .edit-profile-save-full-btn {
    height: 52px;
    font-size: 15px;
    border-radius: 14px;
  }

  /* Toast sits above visible area nicely */
  .profile-save-toast {
    bottom: 40px;
  }
}
